From 05a689c20264b8f267d8081ef22c2e429cfc3202 Mon Sep 17 00:00:00 2001 From: Nick Beckley Date: Wed, 25 Nov 2026 14:04:51 +0000 Subject: [PATCH] Introduce manifest-driven release activation and transactional deployment history --- Docs/Codex/Database.md | 6 + Docs/Codex/Deployment.md | 9 + Docs/Deployment/Phase1-20261125.md | 160 + Docs/Deployment/Production.md | 263 + .../ProductionBaseline-20261125.json | 47 + .../ProductionUpgrade-20261125.plan.json | 14212 ++++++++++++++++ PlotLine.Tests/DeploymentOperationsTests.cs | 76 + PlotLine.Tests/Program.cs | 1 + .../Controllers/DeploymentHealthController.cs | 37 + PlotLine/Data/DeploymentHealthRepository.cs | 22 + PlotLine/Program.cs | 22 +- PlotLine/Sql/318_DeploymentHistory.sql | 48 + PlotLine/Sql/319_DeploymentHealth.sql | 12 + Tools/Deployment/.gitignore | 3 + .../DatabaseWorker/DatabaseWorker.csproj | 12 + Tools/Deployment/DatabaseWorker/Program.cs | 364 + Tools/Deployment/QualificationHost/Program.cs | 96 + .../QualificationHost.csproj | 10 + Tools/Deployment/README.md | 10 + Tools/Deployment/activate.py | 299 + Tools/Deployment/deploy-plotdirector | 12 + .../provision/nginx-plotdirector-map.conf | 5 + .../provision/nginx-plotdirector.conf | 35 + .../provision/plotdirector-deploy.sudoers | 2 + .../Deployment/provision/plotdirector.service | 34 + .../provision/sshd-plotdirector.conf | 11 + .../Deployment/provision/target.example.json | 19 + Tools/Deployment/qualify.py | 129 + Tools/Deployment/release.py | 343 + Tools/Deployment/ssh_dispatch.py | 53 + Tools/Deployment/test_activation.py | 128 + Tools/Deployment/test_release.py | 173 + Tools/Deployment/transfer.py | 31 + 33 files changed, 16683 insertions(+), 1 deletion(-) create mode 100644 Docs/Deployment/Phase1-20261125.md create mode 100644 Docs/Deployment/Production.md create mode 100644 Docs/Deployment/ProductionBaseline-20261125.json create mode 100644 Docs/Deployment/ProductionUpgrade-20261125.plan.json create mode 100644 PlotLine.Tests/DeploymentOperationsTests.cs create mode 100644 PlotLine/Controllers/DeploymentHealthController.cs create mode 100644 PlotLine/Data/DeploymentHealthRepository.cs create mode 100644 PlotLine/Sql/318_DeploymentHistory.sql create mode 100644 PlotLine/Sql/319_DeploymentHealth.sql create mode 100644 Tools/Deployment/.gitignore create mode 100644 Tools/Deployment/DatabaseWorker/DatabaseWorker.csproj create mode 100644 Tools/Deployment/DatabaseWorker/Program.cs create mode 100644 Tools/Deployment/QualificationHost/Program.cs create mode 100644 Tools/Deployment/QualificationHost/QualificationHost.csproj create mode 100644 Tools/Deployment/README.md create mode 100644 Tools/Deployment/activate.py create mode 100644 Tools/Deployment/deploy-plotdirector create mode 100644 Tools/Deployment/provision/nginx-plotdirector-map.conf create mode 100644 Tools/Deployment/provision/nginx-plotdirector.conf create mode 100644 Tools/Deployment/provision/plotdirector-deploy.sudoers create mode 100644 Tools/Deployment/provision/plotdirector.service create mode 100644 Tools/Deployment/provision/sshd-plotdirector.conf create mode 100644 Tools/Deployment/provision/target.example.json create mode 100644 Tools/Deployment/qualify.py create mode 100644 Tools/Deployment/release.py create mode 100644 Tools/Deployment/ssh_dispatch.py create mode 100644 Tools/Deployment/test_activation.py create mode 100644 Tools/Deployment/test_release.py create mode 100644 Tools/Deployment/transfer.py diff --git a/Docs/Codex/Database.md b/Docs/Codex/Database.md index ed9dacb3..30cafc0c 100644 --- a/Docs/Codex/Database.md +++ b/Docs/Codex/Database.md @@ -1,5 +1,11 @@ # PlotDirector Database Operations +Deployable SQL now uses the [manifest/history standard](../Deployment/Production.md) +and `Tools/Deployment/DatabaseWorker`, shared by Development, Test and Production. +Do not bypass successful migration history with ad-hoc sqlcmd execution. Adopt an +existing database only through a verified current-state baseline; historical +execution is not inferred. See the [reviewed recovered-Production plan](../Deployment/ProductionUpgrade-20261125.plan.json). + Read this document only when the current task requires database inspection, SQL migration, schema work or direct development-database access. ## Environment diff --git a/Docs/Codex/Deployment.md b/Docs/Codex/Deployment.md index e208b048..fff02e3d 100644 --- a/Docs/Codex/Deployment.md +++ b/Docs/Codex/Deployment.md @@ -1,5 +1,14 @@ # PlotDirector Development Deployment +The authoritative release/package and migration-history contract is now +[Production deployment standard](../Deployment/Production.md), implemented under +`Tools/Deployment`. The environment details below describe the existing Development +layout; conversion of its physical `current` directory is an explicit provisioning +operation. Use the same manifest, checksums, SQL worker, history and health gates +for Development/Test; do not return to untracked manual SQL on later deployments. +The root activation entry point has a production target profile and must not be +pointed at Development by replacing credentials alone. + Read this document only when deployment or detailed development-service operation is part of the task. ## Environment diff --git a/Docs/Deployment/Phase1-20261125.md b/Docs/Deployment/Phase1-20261125.md new file mode 100644 index 00000000..72244391 --- /dev/null +++ b/Docs/Deployment/Phase1-20261125.md @@ -0,0 +1,160 @@ +# Production migration Phase 1 — 25 November 2026 + +Status at the implementation commit: **qualification in progress; no Production +deployment authorised**. Final evidence is recorded separately after clean-commit +qualification. Do not treat a draft plan or prototype rehearsal as release approval. + +## Source and installed Development baseline + +Repository HEAD at discovery was `643f28c4f99c72056b5a66a54398a0c7edd4847b`, +an evidence-only descendant of implementation +`f3c3683bc24674914b5d52499efa9b8e743615a5`. Current Development DLL and archive +`character-overview-f3c3683b-20261123T223506Z` both hash to +`0659e7aa4988516e3955ba33b120330cb039cdd154c2413a059fd6cab5195e27`. +No newer installed build was found. Historical regression evidence reports 816 +application checks, authenticated browser acceptance and provenance preservation. + +Implementation is on an isolated worktree/branch so the pre-existing untracked +canonical-manuscript assessment and Context workspace audit are preserved. The +qualified candidate must include this phase's tooling, migrations 318/319 and +deployment-only application changes, built from its own clean commit. + +## Independently verified web1 inventory + +Strict SSH used the supplied dedicated identity and recorded ED25519 fingerprint. +Administrator currently has passwordless administrative sudo. No remote changes +were made. OS is Ubuntu 24.04.5 LTS. Both .NET/ASP.NET Core runtimes are 10.0.15; +no SDK is listed. Approximately 21 GiB RAM was available, with 4 GiB swap and +555 GiB free on the root volume at inspection. + +Native SQL Server reports 17.0.5065.9, Express Edition. It binds loopback 1433; +configuration limits memory to 4096 MiB, disables SQL Agent and sets backup directory +`/srv/backups/sql`. PlotLine is ONLINE, compatibility 170, SIMPLE recovery, owned by +sa; data/log allocations are 200/264 MiB. The backup service's SQL principal has +db_backupoperator. Its metadata visibility is limited: a complete live login/user +and permissions inventory still requires a SQL security administrator or appropriate +VIEW DEFINITION/server-security visibility. Do not infer absence of an application +login/user from that restricted view. The recovered backup contains PlotLineApp as +an orphaned user on Atlas, as expected for a restore to another server. + +The hourly `sql-backup.timer` invokes a root-owned 0750 script with a root-protected +credentials file; it backs up both PlotLine and CatherineLynwood with CHECKSUM to +new timestamped 0600 files. It is not changed by the new deployment tooling. +Existing backups, including the original recovered media, were not overwritten. + +`catherinelynwood.service`, Nginx, SQL Server and Fail2ban were active. Catherine +runs as catherinelynwood from `/srv/catherinelynwood/current` on 127.0.0.1:5002 with +its own environment file, enabled virtual host and certificate. Ports 5001/5003 +were free. UFW allows SSH/HTTP/HTTPS; SQL is not publicly listening. PlotDirector +has no enabled virtual host, certificate or loaded application service yet. +Fontconfig, FreeType, ICU 74 and libstdc++ are present; final native-library loading +on web1 remains a Phase 2 smoke check. + +Existing PlotDirector layout differs from the protected target: root/release +directories are administrator-owned; shared uploads and key directories exist; +logs are currently top-level; `/etc/plotdirector` is empty. The runtime account +exists; deployment/migration accounts do not. The planned helper deliberately +refuses this unprovisioned state. No ownership, accounts or services were changed. + +Recovered private archives in `/home/administrator` contain uploads and the old +environment file, service definition and two Data Protection key files. The config +archive does not include appsettings.json. Shared configuration must be reconciled +with the old effective configuration during provisioning. `/srv/backups/{websites, +configuration}` existed but contained no files at inspection. + +Atlas's default SSH include `/etc/ssh/ssh_config.d/20-systemd-ssh-proxy.conf` is +root-owned mode 0777, causing OpenSSH's ownership/permissions refusal. `-F /dev/null` +avoids it. No system-wide SSH configuration was modified. + +## Old Production and recovered baseline + +www remains inactive and unchanged. Installed helper and DLL still match the +November archived hashes; release commit is +`5d2e080539c10c3a2c6aed5c18c169abc8a55e77`. The installed November helper, not the +September README, informed preservation, active-work, backup, failure and SQL rules. + +Original recovered media: `web1:/srv/backups/sql/PlotLine-20261124.bak`, 198261248 +bytes, SHA-256 +`6cf9e6d4d340a222a48c43265582e45a0150b132ae6eeb2bb6cd112f97cb743c`. +It was read over SSH into mode-0700 private Atlas storage, with matching source and +local checksums. It passed VERIFYONLY and actual isolated restores to the existing +Atlas SQL Server 2025 container (17.0.4006.2 Developer Edition). Production data was +never used as a live migration test target. + +There is no existing migration/release ledger in the restored copy. The original +schema has 163 tables and 659 modules. Historical comparison found 642 literal +module matches, eight comment-only differences, one migration-160 dynamic patch +and one trigger deliberately removed by 125. Eight additional modules are SSMS +diagram support, retained without inventing PlotDirector migration identities. +The stored active Problem Solver graph exactly matches the archived non-numeric +publication script's UTF-16 SHA-256. Historical scripts before 208 are unchanged +between 5d2e080 and the selected source baseline. + +[Baseline evidence](ProductionBaseline-20261125.json) distinguishes a verified +cumulative final-state baseline from proof that an individual historical script +executed. Baseline UTC is the actual verification time. [The explicit ordered +plan](ProductionUpgrade-20261125.plan.json) records individual identities/checksums, +dependencies, baseline evidence, prerequisites and postconditions. + +Important ordering/classification decisions: + +- 253 → **255 → 254** → 256, as documented in the geography implementation report. + The first exploratory numeric rehearsal demonstrated the 254 truncation and a + complete rollback of that script/history record. No automatic retry was made. +- 301/302/303 are superseded by the standalone complete 304 definition; 302 also + contains a known syntax error. Their files are preserved, never rewritten. +- 286 refreshes Development reset procedures and is inapplicable to Production. + Old reset definitions remain untouched; no reset procedure is executed. +- 318 bootstraps history before recording historical baselines; 319 supplies the + local application's stored-procedure health probe. Neither changes business rows. +- SQL performance/inline-SQL improvements are carried by 283–285, 287–289 and later + included migrations. No blanket index maintenance or speculative tuning is added. + +## Architecture and qualification evidence + +See [the operational standard](Production.md) and `Tools/Deployment` for release +preparation, Ed25519 authorisation, restricted transfer, root-owned activation, +transactional history, versioned installation, atomic switching, health, evidence +and rollback. Provisioning examples are prepared but not installed on web1. + +Exploratory fresh-copy upgrades established the migration sequence, exact original +business-data preservation and reproducible schema. Those rehearsals are not the +final clean-commit qualification. Private data fingerprints cover all original +columns, IDs, content, revision/synchronisation metadata and asset references in +all 163 tables (139554 rows). New columns are excluded from old-column comparison +so defaults cannot hide a change to existing data. No row content is published. + +Actual SQL failure checks verify replay prevention, changed historical checksum, +incorrect baseline, missing prerequisite and competing-session lock rejection. +Filesystem/service-boundary tests cover package/signature/path/link integrity, +space, backup verification, migration failure, installation permissions, HTTP +failure and failed history recording. Service operations in these failure tests +are mocked; they do not qualify web1's uninstalled service or Nginx configuration. + +The final test-only host requires an isolated SQL database/login, a private request +token and loopback binding; it verifies the actual application DLL hash. All app +background services and external HTTP clients are disabled. Real SMTP, Stripe and +OpenAI credentials are absent. Clone-only test authentication is in the test tool, +not the deployed web application. Read-only clone requests supplement existing +authentication/browser regression evidence; they are not a claim of physical Word +or external-payment/email acceptance. + +Application changes are limited to stable configurable Data Protection identity, +trusted-loopback forwarded headers and the loopback deployment health endpoint. +The health endpoint returns only binary/database identity and fails closed without +leaking connection/SQL diagnostics. Existing Writer/Context/Companion functionality +is retained. Synthetic key-ring tests establish the content-root discriminator and +cross-root explicit identity behaviour; no real historical cookie is claimed valid. + +## Remaining gates before Production + +Final readiness requires a clean-commit signed package, two complete fresh-copy +upgrades using the final worker, regression/HTTP/failure results and a matching +qualified DLL/evidence identity. Phase 2 then provisions accounts, trust, ownership, +SQL permissions/mappings, shared data/secrets, service and independent TLS/vhost, +verifies the live starting fingerprint, and obtains explicit activation authority. + +Actual web1 login permissions, its initial service, certificate, public HTTPS, +Catherine coexistence after later configuration changes, physical Windows Word +behaviour and real-cookie continuity remain deployment/cutover checks. Production +configuration, databases, files, services, firewall and DNS remain unchanged. diff --git a/Docs/Deployment/Production.md b/Docs/Deployment/Production.md new file mode 100644 index 00000000..fe70a06d --- /dev/null +++ b/Docs/Deployment/Production.md @@ -0,0 +1,263 @@ +# PlotDirector production deployment standard + +This procedure separates Atlas preparation, immutable transfer and restricted +activation. Phase 1 does not authorise installing it or activating PlotDirector on +web1. Consult [Phase 1 qualification](Phase1-20261125.md) before Phase 2. + +## Trust and environment boundaries + +- Build only on Atlas, from a clean, committed worktree. Keep source, SDKs and + development tooling off web1. Use framework-dependent .NET 10 releases. +- `administrator` provisions the server; `plotdirector-deploy` transfers approved + releases and invokes one fixed activation command; `plotdirector` runs the app. +- A separate `plotdirector-migrate` system identity reads the migration connection + configuration. The runtime and transfer accounts must not read it. +- The root-owned helper, Python modules, database-worker binaries/dependencies, + target configuration and release-verification public key are outside releases. + Neither runtime nor transfer identities may write any ancestor of these files. +- Release signing is independent of deployment SSH. Keep the signing private key + on Atlas under an approved secret-management process, mode 0600 inside a 0700 + directory. Do not place it on web1 or share it with the transfer account. +- The manifest cannot select shell hooks, executables, service names, destinations + or health URLs. Target paths/service/endpoint come from protected configuration. +- Administrator access in this phase is temporary. Remove the specific temporary + authorised key only after restricted deployment access has passed verification. + +Production: `web1`, `85.190.124.132`, SQL `PlotLine`, Kestrel loopback 5001. +Catherine Lynwood remains on 5002; 5003 remains reserved. No default Nginx site, +Catherine service/configuration, SQL database or firewall change is part of a +PlotDirector release. + +Atlas SSH must use `-F /dev/null -o IdentitiesOnly=yes -o HostKeyAlgorithms=ssh-ed25519 +-o StrictHostKeyChecking=yes -o UpdateHostKeys=no` with the dedicated identity. +Verified host fingerprint: `SHA256:4X54DW85/3J/iGU7ECfRkbMn0n13gVPbpRnvtcZfn/0`. +The bypass is required because Atlas's system SSH include is mode 0777. Repair of +that system-wide configuration is separate work, not part of this migration. + +## Release preparation and approval + +Tool location: `Tools/Deployment`. Publish the database worker separately during +initial provisioning; the privileged helper never executes package binaries. + +1. Select a full source SHA and create a clean worktree. Preserve unrelated work. +2. Review the database state and explicit ordered plan. Do not infer history from + a numeric maximum or replay the SQL directory. Retain script hashes forever. +3. Restore the recovered backup into uniquely named isolated SQL databases. + Qualify the complete plan twice from fresh copies. Keep original backups. +4. Verify business fingerprints, integrity, SQL contracts, real app startup and + feature evidence. Disable all background workers and substitute credentials + before starting a clone application. Never load a production connection string. +5. Save a sanitised evidence directory and a plan with qualification status passed. + It must identify the actual source/build hashes and the two fresh-copy results. +6. Prepare and sign on Atlas: + + ```bash + python3 Tools/Deployment/release.py prepare \ + --source /absolute/clean/worktree \ + --plan /absolute/reviewed-plan.json \ + --sql /absolute/reviewed-sql-input \ + --evidence /absolute/sanitised-evidence \ + --output /absolute/new-release-bundle \ + --release-id FULLY-QUALIFIED-UNIQUE-ID \ + --signing-key /absolute/private/release-signing.pem + python3 Tools/Deployment/release.py verify /absolute/new-release-bundle \ + --public-key /absolute/trusted-release-signing-public.pem + ``` + +`authorization.json` binds the source SHA, release ID, complete uncompressed tar +SHA-256 and manifest SHA-256. Its Ed25519 signature is verified against the +administrator-installed trust anchor. The manifest indexes every application, +SQL and sanitised evidence file. The application checksum covers its canonical +file index. Package version must match `PlotLine.deps.json`. + +Preparation excludes appsettings, environment files, persistent directories and +local tools configuration. Secrets must be provisioned separately. Evidence must +never contain recovered rows, connection strings, key files or diagnostic dumps. +Private qualification artifacts stay outside Git, under restricted Atlas storage. + +## Migration and release history + +Migration 318 introduces `dbo.DatabaseMigrationHistory` and +`dbo.ApplicationReleaseHistory`. There is no administration UI. + +- Identity is a unique script identity, including historical non-numeric scripts. + Filenames, SHA-256, current recorded UTC, deployment ID and execution duration + are stored. `Baselined` rows contain an evidence reference and no duration. + Baseline time means verification/recording time, never an invented execution time. +- A historical final-state baseline does not assert that every original script + executed. Superseded effects must be explained in its evidence. Unknown effects + remain unresolved and block approval; do not label them applied. +- A checksum mismatch against history blocks before backup or shutdown. Recorded + scripts are skipped; dependencies must be explicit and ordered. An unknown + recorded identity blocks a plan that does not account for it. +- One SQL session holds `sp_getapplock` through migration, startup, health and + release recording. A protected filesystem lock additionally prevents concurrent + activation on the same host. A disconnected SQL session releases its lock. +- Each transactional script, its postconditions and its successful history insert + commit together. Error rolls back the current script and its history row. Earlier + committed scripts remain. No automatic retry or database rollback is attempted. +- This version refuses non-transactional scripts. Such a change requires an + explicitly reviewed manual execution/recovery procedure before release approval; + it must not be disguised as transactional or silently retried. +- A completed plan is accepted again only with the exact final schema and all + matching history. It does not reapply completed SQL. Code-only releases retain + the full known history and have no unrecorded execute steps; they still receive + an activation history row after health checks. +- Successful activation history contains a new deployment ID, release/version, + source SHA, package hash, manifest hash, server UTC and evidence reference. + `ActivationKind` distinguishes Deploy/Rollback and links the preceding successful + deployment. Failure attempts belong in protected JSONL evidence, never successful + activation history. + +`ApplicationReleaseHistory` is an append-only account of successful activations, +not a promise that its last row is currently running. Determine current state by +checking the service, resolved `current` symlink, installed hashes, root-owned +`active-deployment.json`, SQL history and attempt evidence together. A crash between +SQL recording and the filesystem marker requires operator reconciliation. + +The same manifest, history schema, database worker and qualification rules apply +to Development and Test. A different environment gets its own explicit schema +baseline, SQL identity and protected target configuration; never copy a production +connection string. Adoption in Development must back up/verify its own database, +check active work and baseline its actual current state. Do not run the legacy +manual SQL procedure alongside this ledger after adoption. + +## Activation and failure behaviour + +`transfer.py` sends only the three immutable bundle files over strict SSH. The +forced SSH dispatcher supports upload, validate, activate and rollback with one +validated release ID; it rejects shells, SFTP and other commands. Transfer alone +does not activate anything. An incomplete upload requires administrator review; +it is not overwritten automatically. + +After independent Phase 2 authorisation: + +```bash +python3 Tools/Deployment/transfer.py /absolute/bundle \ + --identity /home/nick/.ssh/plotdirector-production +``` + +Use the verified SSH options above with `plotdirector-deploy@85.190.124.132` and +remote command `validate RELEASE-ID`, then `activate RELEASE-ID`. + +Validation takes private snapshots, checks signature/archive/index/version, +target identity, exact schema, history, prerequisites and active work. It creates +protected validation evidence and takes locks; it does not back up, migrate or +operate the service. Archive members must be regular files, bounded in size/count, +with no traversal, duplicate paths, links, special files or extra content. + +Activation reserves space, creates a unique COPY_ONLY/CHECKSUM backup, executes +RESTORE VERIFYONLY before stopping the service, rechecks active work, stops and +requires inactive state, then runs SQL. It installs a new root-owned release and +atomically replaces `current`. It starts the service and checks local root/login +HTTP, binary identity and database postconditions before recording success. + +Backups are not overwritten. VERIFYONLY is useful but is not a restore rehearsal; +the isolated restore qualifications provide separate evidence. The existing hourly +backup timer continues independently and is not a substitute for pre-deploy backup. + +Any migration/install/startup/health/history error leaves or requests the service +stopped, retains artifacts and records the failure phase. The symlink may point at +a failed candidate after activation begins; never assume it still identifies the +last successful release. A root process kill or machine failure can interrupt this +sequence: inspect evidence and ledger before any recovery action. + +For application rollback, qualify old binaries against the **current** database, +issue a new signed release ID with no outstanding SQL, and request `rollback ID`. +The helper refuses rollback if any migration is unrecorded. Health must pass before +a new Rollback history row is inserted. A SQL rollback is a separately authorised +restore/recovery operation; never replace a database automatically. + +## Phase 2 initial provisioning (administrator only; not executed in Phase 1) + +Review existing files and take uniquely named configuration backups first. Keep +Catherine's service, virtual host, certificate, data and database unchanged. + +1. Verify OS/runtime/native dependencies, trusted SSH fingerprint, free ports and + backup health again. Confirm web1's live schema matches the qualified starting + fingerprint; additional changes require fresh qualification. +2. Provision `plotdirector-deploy` with `/bin/sh` and a locked password; provision + `plotdirector-migrate` as a system account with `/usr/sbin/nologin`. Reuse the + existing `plotdirector` runtime account. Do not grant either new account access + to Catherine's groups or add them to sudo/adm/docker groups. +3. Create protected directories with these exact ownership/mode requirements: + + | Path | Owner | Mode | + | --- | --- | --- | + | `/srv/plotdirector` | root:root | 0755 | + | `/srv/plotdirector/releases` | root:root | 0755 | + | `/srv/plotdirector/incoming` | root:plotdirector-deploy | 0730 | + | `/srv/plotdirector/deployment-evidence` | root:root | 0700 | + | `/srv/plotdirector/deployment.lock` (empty regular file) | root:root | 0600 | + | `/srv/plotdirector/shared/{uploads,logs}` | plotdirector:plotdirector | 0750 | + | `/srv/plotdirector/shared/.aspnet/DataProtection-Keys` | plotdirector:plotdirector | 0700 | + | `/etc/plotdirector` | root:plotdirector | 0750 | + | `/etc/plotdirector/plotdirector.env` | root:plotdirector | 0640 | + | `/etc/plotdirector-deployment` | root:plotdirector-migrate | 0750 | + | `/etc/plotdirector-deployment/database.json` | root:plotdirector-migrate | 0640 | + | target JSON and public verification key | root:root | 0600 / 0644 | + + Do not recursively change existing shared data or `/srv/backups`. Preserve the + recovered archives. Migrate any existing top-level logs into shared storage + without replacing existing files. No deployed release directory may be writable + by runtime or transfer identities. New release files are root:plotdirector 0440, + directories 0750. Application files execute only through the unprivileged service. +4. Publish `DatabaseWorker.csproj` on Atlas. Administrator installs the entire + framework-dependent output under `/usr/local/lib/plotdirector-deployment/database` + root:root, directories 0755/files 0644. Install `activate.py`, `release.py` and + `ssh_dispatch.py` in the parent root-owned directory (0755; dispatcher executable). + Install `deploy-plotdirector` as `/usr/local/sbin/deploy-plotdirector`, root 0755. + Review every installed file/hash; no source repository or SDK is needed on web1. +5. Copy reviewed `provision/target.example.json` to the target JSON location. + Provision the independent approved signing public key. Create `database.json` + privately with `database`, `connection`, `expected_host` and `expected_server` + properties, using database PlotLine, host web1, server `127.0.0.1,1433` and a + dedicated migration SQL login targeting local native SQL Server. + Use a secure prompt/secret manager; never put its connection string in commands, + reports, Git or a package. +6. A SQL administrator must create/reconcile server logins and restored user SIDs. + Runtime login: PlotLine-only user, required EXECUTE on reviewed application + procedures, metadata visibility on the two history tables for the fixed health probe, no server role, no db_owner or direct migration/history-write rights. + Migration login: db_owner **only in PlotLine** for reviewed DDL/backup work; + direct CREATE ANY DATABASE permission is needed by SQL Server for VERIFYONLY ([Microsoft permission reference](https://learn.microsoft.com/en-us/sql/t-sql/statements/restore-statements-verifyonly-transact-sql?view=sql-server-ver17)). + Do not use dbcreator (which grants broader powers), sysadmin, the hourly backup + credential or the application credential for migration. It must have no user or + elevated permissions in CatherineLynwood. Review existing PUBLIC/cross-database + permissions. A future certificate-signed fixed verification procedure can narrow + the server permission further; that is not silently assumed installed. +7. Recover uploads and keys separately, validating archive paths/link types before + copying, preserving originals and checking file hashes. Configure absolute + `Storage__UploadsRoot` and `DataProtection__KeysPath` to shared directories. + Provision SMTP/Stripe/OpenAI settings and other qualified-build settings outside + releases. The recovered configuration archive does not contain appsettings.json; + reconcile the old effective settings explicitly, including Site/Admin and feature + flags, rather than assuming environment-only recovery is complete. +8. Data Protection's default application identity depends on the content root. + A versioned release changes that root unless pinned. The application now supports + `DataProtection__ApplicationName`; choose an explicitly reviewed stable identity + and keep it unchanged across releases. Historical root was `/var/www/plotdirector`. + Test old key purposes/discriminator before claiming cookie or encrypted-payload + continuity. Copying XML keys alone does not establish compatibility. Phase 1 does + not claim a real historical authentication cookie was successfully replayed. +9. Install the reviewed service template; do not start it. Run systemd verification + and check its account, environment path, content root, writable paths and loopback + endpoint. Install the reviewed sudoers fragment only after `visudo -cf` passes; + validate the whole sudo configuration. Install the forced-command SSH Match block + only after `sshd -t` passes. Keep an administrator session open during SSH reload. +10. Put the dedicated deployment public key in the root-owned authorised-keys file + named by the Match block, with `restrict` and an appropriate verified Atlas + source-address restriction where operationally stable. Verify upload/validate, + shell and SFTP refusal, forwarding refusal, no general sudo, helper/config + non-writability and no access to Catherine. Then remove **only** the temporary + Atlas administrator key authorisation. Do not remove other administration access. +11. Provision PlotDirector's own certificate and reviewed virtual host/map templates. + Existing DNS still targeting www will affect certificate issuance; select an + explicitly authorised challenge/certificate-transfer approach. Run `nginx -t`; + verify Catherine before and after any later reload. Preserve ports 5002/5003. + Test HTTPS using `--resolve` and normal certificate validation before DNS cutover. +12. Activate only after Phase 2 approval and a verified starting-state/backup check. + Run authenticated feature, upload, image, Word/SignalR and account checks before + separately authorised DNS changes. Keep www inactive and unchanged as fallback. + +No provisioning, remote transfer, production migration, service start, Nginx reload +or DNS change in this document is authorised merely by completing Phase 1. diff --git a/Docs/Deployment/ProductionBaseline-20261125.json b/Docs/Deployment/ProductionBaseline-20261125.json new file mode 100644 index 00000000..65dfe1cf --- /dev/null +++ b/Docs/Deployment/ProductionBaseline-20261125.json @@ -0,0 +1,47 @@ +{ + "historical_application_commit": "5d2e080539c10c3a2c6aed5c18c169abc8a55e77", + "recovered_backup_sha256": "6cf9e6d4d340a222a48c43265582e45a0150b132ae6eeb2bb6cd112f97cb743c", + "starting_schema_sha256": "1eaa17d39bfdc2542743d6e911659141466f0bdf4efbeb62fb76b958ddd03c21", + "semantics": "Baselined at current verification time against cumulative final schema/data state. Individual historical execution is not asserted. No fabricated original timestamps. Module checks use preserved final definitions, including documented supersession.", + "literal_modules_reviewed": 652, + "literal_matches_initial": 642, + "differences_explained_by_comments": 8, + "dynamic_patch": "160_Phase25E_ProjectHardDeleteDependencyCleanup.sql updates ProjectHardDelete_ForOwner", + "removed_trigger": "125_Phase20AE_RemoveDefaultScenePlaceholder.sql removes TR_Chapters_CreateDefaultScene", + "additional_modules": "Eight retained SSMS diagram support modules; no PlotDirector migration identity assigned.", + "publication_graph_utf16_sha256": "b341f299e0704490a57bbada6f3dd06a5b952c3a451f14506b811545e4d4cc3f", + "original_business_tables": 163, + "original_business_rows": 139554, + "original_business_fingerprint_artifact_sha256": "759c6d23b59ac17d4447d33bf692029b88d180f20e4abcb3d4fe795b54def450", + "historical_baseline_entries": 210, + "executed_steps_in_plan": 108, + "ordering_exception": "253 -> 255 -> 254 -> 256; Docs/Geography/GeographicalPositioning.md", + "omitted_migrations": [ + { + "id": "286_DevelopmentResetProcedures", + "sha256": "ed1de0660ed11ad36799b4449adb8c502a792e34c3b238482039ebdf4d6a5b3e", + "reason": "Development-only reset procedure refresh; no Production execution; current runtime guards require separate review.", + "evidence": "evidence/baseline.json" + }, + { + "id": "301_CharacterLifeStatus", + "sha256": "2ce923ff04ab7648790521d68f8aeea5d4e56b6c36ea884a73fdb212f17043e0", + "reason": "Superseded by standalone migration 304, which explicitly replaces partial 301 and failed 302; 303 is the intermediate projection repair covered by 304.", + "evidence": "evidence/baseline.json" + }, + { + "id": "302_CharacterLifeStatusProjections", + "sha256": "b50f5bb1616bf5eff5a02ccba92cf6348e8da663941c1242fd578b3f315b62e7", + "reason": "Superseded by standalone migration 304, which explicitly replaces partial 301 and failed 302; 303 is the intermediate projection repair covered by 304.", + "evidence": "evidence/baseline.json" + }, + { + "id": "303_CharacterLifeStatusProjectionRepair", + "sha256": "947d276060e33a8a07c8e6413d97c36ce6b41540a80efb14386e16015108e21f", + "reason": "Superseded by standalone migration 304, which explicitly replaces partial 301 and failed 302; 303 is the intermediate projection repair covered by 304.", + "evidence": "evidence/baseline.json" + } + ], + "unresolved": "No unresolved module-definition discrepancy after documented patch, removal and SSMS-support classification. Historical per-script execution remains unknown; baselines represent verified current final state.", + "resulting_schema_sha256": "6d26db0814ae38254957a5b27b44591e959e0408cab98e6701b25cfee7827fe1" +} diff --git a/Docs/Deployment/ProductionUpgrade-20261125.plan.json b/Docs/Deployment/ProductionUpgrade-20261125.plan.json new file mode 100644 index 00000000..1b644983 --- /dev/null +++ b/Docs/Deployment/ProductionUpgrade-20261125.plan.json @@ -0,0 +1,14212 @@ +{ + "starting_schema_sha256": "1eaa17d39bfdc2542743d6e911659141466f0bdf4efbeb62fb76b958ddd03c21", + "resulting_schema_sha256": "6d26db0814ae38254957a5b27b44591e959e0408cab98e6701b25cfee7827fe1", + "migrations": [ + { + "id": "318_DeploymentHistory", + "file": "318_DeploymentHistory.sql", + "sha256": "2d60fa4ca4dbd84dd08ba3c2d5a425a1884d795f0ebe75be6c5775f8b9e20482", + "requires": [], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.DatabaseMigrationHistory", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ApplicationReleaseHistory", + "type": "U" + } + ] + }, + { + "id": "001_Phase1A_Core", + "file": "001_Phase1A_Core.sql", + "sha256": "c0673b5510d3e7104f6b9b98a566122bbe4dbebcd851d2e49cacb60905652e73", + "requires": [ + "318_DeploymentHistory" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.ScenePurposes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.SceneOutcomes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ScenePurposeTypes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.TimeConfidences", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.DurationUnits", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.TimeModes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.RevisionStatuses", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.Projects", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.Chapters", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.Scenes", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.Project_List", + "sha256": "694eec0d3e6e8ea3d78cb78bdcf8a22324d29ff3a4d00405f29ba4c5e042999f" + }, + { + "kind": "module_sha256", + "name": "dbo.Project_Get", + "sha256": "e6e318aa9d1e7b1c7e6e6a2b850e9545e87fcb9b66d18511db92fe0a5d5df238" + }, + { + "kind": "module_sha256", + "name": "dbo.Project_Save", + "sha256": "2796d2571689cada0262a4f773a8dd182b8e1fcf2611d4dfafe4acac3ad5aa63" + }, + { + "kind": "module_sha256", + "name": "dbo.Project_Archive", + "sha256": "98154581b97a384e45360a5693f7dea267963fafb8041b451a484963b7ab691d" + }, + { + "kind": "module_sha256", + "name": "dbo.Book_ListByProject", + "sha256": "86fde3df5d3d483bb7df5be416a27cee0f4e9df279262f3bd5264672cf536ede" + }, + { + "kind": "module_sha256", + "name": "dbo.Book_Get", + "sha256": "a51e34b8ee4066c7c518e1c78f4e74b7a2c9b5a34ec911e2dc6ae2cbfc11701b" + }, + { + "kind": "module_sha256", + "name": "dbo.Book_Save", + "sha256": "e89705c9502cf0450ce202e6bece8efe73095fff3ad43c19c007c5fb8e5372ef" + }, + { + "kind": "module_sha256", + "name": "dbo.Book_Archive", + "sha256": "83bd1c70fefc7326d1b0c8a0127620276e7bdc3e82256605b0693827d67149f7" + }, + { + "kind": "module_sha256", + "name": "dbo.Chapter_ListByBook", + "sha256": "8d60a83287f76c8fce4378ce67f98160c3ed7d943029e7a09e274b03954d4530" + }, + { + "kind": "module_sha256", + "name": "dbo.Chapter_Get", + "sha256": "a5b240019eddaf7827883ed00482e923cdae8a3cfe534700acafed1359af7457" + }, + { + "kind": "module_sha256", + "name": "dbo.Chapter_Save", + "sha256": "40f8e3f32732d08ee8e919af271c8aa34d2e41b60cb9fb095004290eecddc221" + }, + { + "kind": "module_sha256", + "name": "dbo.Chapter_Archive", + "sha256": "0651ef08563c532bf0c8bba35e2a78250df48cc66324b58f606af9fc96daab86" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_ListByChapter", + "sha256": "38f864ecad3b60b7ee0defc92b0143bbf36754ad56fc143d24cca4c72485fd33" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_Get", + "sha256": "66d948905bb558ac557dddc6a6d58ae70790828a49988a52c40dc432229cbe08" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_Save", + "sha256": "0fb556b707d9d6988afb381854e9d739a4f375dbe3a10db8c1d5b2530862b5fb" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_SavePurposes", + "sha256": "f9a650ec709489f5cf250d5cbe0029ae66ba1e90ffbd854d18c6c4b3f85456c1" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_Archive", + "sha256": "47e6d4ad52be74cc790ecce2bdb50efbe2fa0caff6faffd9c0b5120fd5309e5a" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_Move", + "sha256": "02e358b926ce82ed39b8425307d4eaa8e4c5e171634e3bdfee1e3704ea32fb08" + }, + { + "kind": "module_sha256", + "name": "dbo.Lookup_All", + "sha256": "51d703b79a46ee2dd263aeae5d21de9c2d03d08f18d49d7920e576816c576f50" + }, + { + "kind": "module_sha256", + "name": "dbo.Timeline_GetByProject", + "sha256": "c5cd747a8acb7e24f01056acc0ab3e2fe381839c9763b6bd3d99fda4b036539b" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "002_Phase1B_WorkspaceMetrics", + "file": "002_Phase1B_WorkspaceMetrics.sql", + "sha256": "355f9f28d9d65109b1cc159a664dbc9dfc4eeda0ab4e349656e2bfbe4a46e275", + "requires": [ + "001_Phase1A_Core" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.SceneMetricTypes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.SceneMetricValues", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneMetricType_List", + "sha256": "8ef0ad03fff4d41013da4e8ff9fdc8b721c544c08b1fda7ce1ee2a459abf3da2" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneMetric_EnsureDefaults", + "sha256": "af04012030fdb6f88a4907a1d691228003504b9eeb638e863119563f08226c42" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneMetric_ListByScene", + "sha256": "a85dca9c260bd78ed3e8f999e39e8f3c3e6ca218de8e04165a0acbd33c38c2ae" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneMetric_SaveValue", + "sha256": "ad4df4d9094f21fcb366743bad45ba1fdf00a706a1b72fb6b968a4ff75264ab2" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_Get", + "sha256": "66d948905bb558ac557dddc6a6d58ae70790828a49988a52c40dc432229cbe08" + }, + { + "kind": "module_sha256", + "name": "dbo.Timeline_GetByProject", + "sha256": "c5cd747a8acb7e24f01056acc0ab3e2fe381839c9763b6bd3d99fda4b036539b" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "003_FixScenePurposeSave", + "file": "003_FixScenePurposeSave.sql", + "sha256": "3c9900cdc987e7a8ed0d43d81f01f0ae0f194959bd8f1f60fdd06ef45b7dd399", + "requires": [ + "002_Phase1B_WorkspaceMetrics" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.Scene_SavePurposes", + "sha256": "f9a650ec709489f5cf250d5cbe0029ae66ba1e90ffbd854d18c6c4b3f85456c1" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "004_Phase1C_PlotThreads", + "file": "004_Phase1C_PlotThreads.sql", + "sha256": "7d1a75eab3fbb795e231d027bf22d8ea3231ea881287c2cf6e499ca01d9279f1", + "requires": [ + "003_FixScenePurposeSave" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.PlotLineTypes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.PlotLines", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ThreadTypes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ThreadStatuses", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.PlotThreads", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ThreadEventTypes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ThreadEvents", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.PlotLookup_All", + "sha256": "716379735a0b3df0d7228b663de48d9c37dabc5dfae197f54f0d2574e5f4a4cd" + }, + { + "kind": "module_sha256", + "name": "dbo.PlotLine_ListByProject", + "sha256": "7faf0e86751ce6b86fb43fe4d9a9a1f9cceb1d908fee4faed4d6ebca02471d1c" + }, + { + "kind": "module_sha256", + "name": "dbo.PlotLine_Get", + "sha256": "b4518d24bd42260a30bc78f43cd1bdbfc628b844d4073e407823bd785cb2176f" + }, + { + "kind": "module_sha256", + "name": "dbo.PlotLine_Save", + "sha256": "9f88b7f4f02e6da08e246c3aa8eab41e890034219ff9254d49376f5e26e3f42c" + }, + { + "kind": "module_sha256", + "name": "dbo.PlotLine_Archive", + "sha256": "59ee5f5bc2025b528015508786197164a23ee97add6819008a03e52169a82792" + }, + { + "kind": "module_sha256", + "name": "dbo.PlotThread_ListByProject", + "sha256": "e0ff4f2142dd0837207851e8cd98e33a7efae88cfc460b725506f68c7425cd62" + }, + { + "kind": "module_sha256", + "name": "dbo.PlotThread_ListByPlotLine", + "sha256": "805b2c2bc8de636d8174a040e53cf401081380f14d34d1fb36b938a96178b6bd" + }, + { + "kind": "module_sha256", + "name": "dbo.PlotThread_Get", + "sha256": "38af2deee3423a506108fd508462e1e56e8746e5ae28f502ed98745ab3569887" + }, + { + "kind": "module_sha256", + "name": "dbo.PlotThread_Save", + "sha256": "5b8b57efa06d567a14bf8597a5c41f75076b4c9c51400e4f27aa5f4174fc1b5b" + }, + { + "kind": "module_sha256", + "name": "dbo.PlotThread_Archive", + "sha256": "89f882f0cf834e2097d7950c917839ae39498f80ebcdcc1e60eb18ddbcf4c23f" + }, + { + "kind": "module_sha256", + "name": "dbo.ThreadEvent_ListByScene", + "sha256": "9550d82718b2762c9919513976c449139569378a0e08716e82c328aab6f10aac" + }, + { + "kind": "module_sha256", + "name": "dbo.ThreadEvent_ListByPlotThread", + "sha256": "a4bca8d654c7d4d5065223882d7d98d7ee32c06bcf9b39c07114c1732fa9f1dd" + }, + { + "kind": "module_sha256", + "name": "dbo.ThreadEvent_Save", + "sha256": "cfc517f0d6253dec1bb588f1e77fcc21b2443000cb9e2dc9d8858a47d89f333d" + }, + { + "kind": "module_sha256", + "name": "dbo.ThreadEvent_Delete", + "sha256": "4cb18b36387e4a38e9c4d6b36faa2a81f671334d83255c96c229eb1b144064a3" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneOption_ListByProject", + "sha256": "eba3b5db1024a3fc1c84abd9870c2ee5aa02b9e0f710fcb455099e19fa4f0556" + }, + { + "kind": "module_sha256", + "name": "dbo.Timeline_GetByProject", + "sha256": "c5cd747a8acb7e24f01056acc0ab3e2fe381839c9763b6bd3d99fda4b036539b" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "005_Phase1D_StoryAssets", + "file": "005_Phase1D_StoryAssets.sql", + "sha256": "9bb64139ba77511c48b0bbdd560d6a6f2a7327547ee6f2170f4724af6b78dd90", + "requires": [ + "004_Phase1C_PlotThreads" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.AssetKinds", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.AssetStates", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryAssets", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.AssetEventTypes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.AssetEvents", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.AssetDependencyTypes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.AssetDependencies", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.AssetCustodyEventTypes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.CustodyRoles", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.AssetCustodyEvents", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.AssetCustodyEventCharacters", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetLookup_All", + "sha256": "ea165542fe3d8335729d5c0c20492473c3f88739277bc44ea7f0ba4ae42734f0" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetKind_List", + "sha256": "749919df613503523f42f6b23387f9eae96e8655573cf4aed44aa473f75fc739" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetState_List", + "sha256": "e7a844ce8b6f07a25d1f4dc070ffdb1e15208de6f87f86654b4a677eb59efa2a" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetEventType_List", + "sha256": "daba435ef20484adbb414aeaf0c13ddd44a78916d5f692746bf2398439c05bce" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetDependencyType_List", + "sha256": "0ea82504063d33241760ebf1f63ce1189582f418575760a904eb6192ab68c7a9" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetCustodyEventType_List", + "sha256": "1d94c712c980409ad0deeae6096a656096cbafceb8000cc8abb0822ec1f15815" + }, + { + "kind": "module_sha256", + "name": "dbo.CustodyRole_List", + "sha256": "582c74d3e7b6075bea5fa630c11ed0064e7fe161accdee8ccb21ed84271c2aaf" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryAsset_ListByProject", + "sha256": "3470fcfca02d1ea6d77a04396fdfbfa0855fe3bd746f219ee1fb61c62f1a8084" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryAsset_Get", + "sha256": "dd3b9b26662831ba62338404eeaf95315a689ee0777356179fe8c334f9061569" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryAsset_Save", + "sha256": "cef147d5d8b7dbb79baf51a965ef3f8b36185f9527474b82181c2b02477eac34" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryAsset_Archive", + "sha256": "b3e5695b8813b3c7fe8421769fc7f34153e5143ef9bb0e35bc1dd36dd6c42c09" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetEvent_ListByScene", + "sha256": "b32c106283f82f838bb8edc0357714a4aa74d0df839d16f912580995af8e61bf" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetEvent_ListByAsset", + "sha256": "e8071957057fdad9c2938905e1e73233a6c87a46cc4eb2d625bb8017b8cd8d12" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetEvent_Save", + "sha256": "13fb458bcc5f9d0960025a010cedff3896d45adb6d1b398c0f7a0989b2e82cdf" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetEvent_Delete", + "sha256": "9eaf394d9dcad47af17b92e659f3330c107e8f59f566de4ff529ae62283eaa4f" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetDependency_ListByAsset", + "sha256": "77bd1052eda358228b270359921707f04a826bbaebc87efb8462d27d61bfd0d6" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetDependency_Save", + "sha256": "e86487bfd67b07b43576f1141abacdbb3f64b08446c360f09869e0810db8217f" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetDependency_Delete", + "sha256": "7b3f4b051dba68082c8a9beefd9998ddd3421a007c9cc04ba84127d74f3382d3" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetCustodyEvent_ListByScene", + "sha256": "e38c8ffc9f37fd42a0a27ba71e088598673ddac438182e0d89e4f569dd9010c9" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetCustodyEvent_ListByAsset", + "sha256": "9dfd7eb70092ed0e82cb1e2c5b5e01be80ebe7c29b3fe1242fd193c2b5625932" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetCustodyEvent_Save", + "sha256": "66ecb90a7cb32b4c1d90883411e06fd9b0fc1ce7ec7595e25978ad3de5d252ed" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetCustodyEvent_Delete", + "sha256": "f908cdd293f0c8ce6a1196d3cd4264ae4ce9169e3a7064bccfe7377cfa3fa040" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetTimeline_GetByProject", + "sha256": "82d4e5ad8c882d15f8ca1ab529833e2dfd98fb0f987a98c05fddf99e658146b4" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetDependency_CheckForEvent", + "sha256": "3bc8c5c5f1517eca39a1a69593185e0459e026fda000f9f4da303b67c189bb2a" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "006_Phase1E_Characters", + "file": "006_Phase1E_Characters.sql", + "sha256": "0c52cf836a687535ea4fc51b33fd0522586525f0eb33b7302b965b24d3bf7231", + "requires": [ + "005_Phase1D_StoryAssets" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.CharacterRoleInSceneTypes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.PresenceTypes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.Characters", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.SceneCharacters", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.CharacterAttributeTypes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.CharacterAttributeEvents", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.KnowledgeStates", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.CharacterKnowledge", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.RelationshipTypes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.RelationshipStates", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.CharacterRelationships", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.RelationshipEvents", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterLookup_All", + "sha256": "4de37bbbbb9d9547e35c367feacbb03796daef9d6d1591ef7d27dd7b48b32c37" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_ListByProject", + "sha256": "dface619a6e4547ac7003a4beb5798e85e917457b143fa5c802e400029f4b14b" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_Get", + "sha256": "7dd1cd990f714acdbf29b90c3be2474657354b0fafc2013631e564251ef1156b" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_Save", + "sha256": "a3f0dd48692bda0d4f7a728001d4fac1e931502b7c2e50a080ff1fa4600d342a" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_Archive", + "sha256": "8cdea349abb25d0d87265b20a6137a8311790b30953dc8dfc84dafe4a2a36114" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneCharacter_ListByScene", + "sha256": "6567229e32116002ecdbf7b7ccc3ae5111c1c48f2fc556bbf5dfc0e14e62ef5c" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneCharacter_Save", + "sha256": "7f9a89cbc27f20fbfae47804211e801c446c03683d0528fe1684002e25629803" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneCharacter_Delete", + "sha256": "fef4fc5e9b311cbeb7ef3f2c38b0618c0cf7542e215ff0c6addfffdd8fffb1a8" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterAttributeEvent_ListByCharacter", + "sha256": "8087beb28bbeaa1b0fd4e625fa9f373f40d8ff94002033a27c9a6c032f071af5" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterAttributeEvent_Save", + "sha256": "9ba679d4d79a021dc010a9c9103fdff8368ff062fdc60df1982a73d5e3c32164" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterKnowledge_ListByScene", + "sha256": "9ba0f67565b1b3fd33bc20a93d548dbf6e2e11ad63375570df8aac612ae6898d" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterKnowledge_ListByCharacter", + "sha256": "90180d70777780fc11c7d28423378d923cf075352cdeb62c12c8237267bb90a3" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterKnowledge_Save", + "sha256": "f0e1cfb70507cc45b80a143a2df99bb21565246be94ec199e6f06eab60afaea6" + }, + { + "kind": "module_sha256", + "name": "dbo.Relationship_ListByCharacter", + "sha256": "7b349793b38c8d9c614fbcaf5ddf3af7d4c7da532a3856fdc1b8705ed45b30ef" + }, + { + "kind": "module_sha256", + "name": "dbo.Relationship_ListByProject", + "sha256": "8337781e493dc6f6ce7cbf06821fbbfdcbfad18318943764646db84331edaba4" + }, + { + "kind": "module_sha256", + "name": "dbo.Relationship_Save", + "sha256": "8f1cff706b0a37b5a3a46e408b22c90af08328a1d85240b450996074e27a0e51" + }, + { + "kind": "module_sha256", + "name": "dbo.Relationship_Archive", + "sha256": "fd39cc6edbed64510eef2b90e97fee0c6646da9b9d188da6f68e9f82d11f647e" + }, + { + "kind": "module_sha256", + "name": "dbo.RelationshipEvent_ListByCharacter", + "sha256": "7c5c42c8012f4075b822ced5891eb2c364bc059d2e0d92663ed0cd992a016510" + }, + { + "kind": "module_sha256", + "name": "dbo.RelationshipEvent_ListByScene", + "sha256": "08a91ecf8970b702646b13a07a10d83f4e4110f4dded40d237d325def6a527ae" + }, + { + "kind": "module_sha256", + "name": "dbo.RelationshipEvent_Save", + "sha256": "95aaff7a1fd61d3cdeb700695922d5eaad4f7dee44c3356bff403f2a7cc11744" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterTimeline_GetByProject", + "sha256": "08fa54377115534bd14cb5614662312bd8ae0820afca59305475e062f8195c05" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetCustodyEvent_Save", + "sha256": "66ecb90a7cb32b4c1d90883411e06fd9b0fc1ce7ec7595e25978ad3de5d252ed" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetCustodyEvent_ListByScene", + "sha256": "e38c8ffc9f37fd42a0a27ba71e088598673ddac438182e0d89e4f569dd9010c9" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetCustodyEvent_ListByAsset", + "sha256": "9dfd7eb70092ed0e82cb1e2c5b5e01be80ebe7c29b3fe1242fd193c2b5625932" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "007_Phase1F_Locations", + "file": "007_Phase1F_Locations.sql", + "sha256": "b59b22067fd464e7169aafb45e1d4a3fabd3d60692b463348981efc5590754a6", + "requires": [ + "006_Phase1E_Characters" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.LocationTypes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.Locations", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.LocationRelationshipTypes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.LocationRelationships", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.SceneAssetLocations", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.LocationPaths", + "sha256": "a8414027654a772958659787a3023b7aee8f0a883fef00f73059d03c0f3b6287" + }, + { + "kind": "module_sha256", + "name": "dbo.LocationLookup_All", + "sha256": "4db88760571df8696277586e8bb591092114eaba68ffb5b0be6c9fdd45805ea5" + }, + { + "kind": "module_sha256", + "name": "dbo.Location_ListByProject", + "sha256": "8ef87333010e0b3e43e0493edc40584317445e11ac9aaf604086cd106cc6749d" + }, + { + "kind": "module_sha256", + "name": "dbo.LocationTree_GetByProject", + "sha256": "014ce0964159401b2f098c4d283ffd3ca121358db6e7ec689058a3cfb1700074" + }, + { + "kind": "module_sha256", + "name": "dbo.Location_Get", + "sha256": "7f8009a7a8570b19a1cb1b61f03c801e05685338617358bbceefbe13d0d6082b" + }, + { + "kind": "module_sha256", + "name": "dbo.Location_Save", + "sha256": "2da83c20f059677e586cd5436f4abfec065e6f55a874a8af113ad57496a594fd" + }, + { + "kind": "module_sha256", + "name": "dbo.Location_Archive", + "sha256": "402f12067feb51896ca907716fbfc639d96d57cf8582266862590e9f15c7dd80" + }, + { + "kind": "module_sha256", + "name": "dbo.LocationRelationship_ListByLocation", + "sha256": "aa2155599e36387ac29afb3edcdfe1d61d632f3cec40b0637d6864b6f7a37c25" + }, + { + "kind": "module_sha256", + "name": "dbo.LocationRelationship_Save", + "sha256": "f275c385d637f5f8da01ca3034b3898122d60158f2ce7f399573162d882c682c" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_Save", + "sha256": "0fb556b707d9d6988afb381854e9d739a4f375dbe3a10db8c1d5b2530862b5fb" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneLocation_SavePrimary", + "sha256": "1472c42f2f6dbbd9049f193d903cc26d083e7cad7b02c80427423da3164e87b7" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_Get", + "sha256": "66d948905bb558ac557dddc6a6d58ae70790828a49988a52c40dc432229cbe08" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneCharacter_Save", + "sha256": "7f9a89cbc27f20fbfae47804211e801c446c03683d0528fe1684002e25629803" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneCharacter_ListByScene", + "sha256": "6567229e32116002ecdbf7b7ccc3ae5111c1c48f2fc556bbf5dfc0e14e62ef5c" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryAsset_Save", + "sha256": "cef147d5d8b7dbb79baf51a965ef3f8b36185f9527474b82181c2b02477eac34" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneAssetLocation_Save", + "sha256": "17f7ee4e58adb68e89b24b66aff05c45d982f9eb8b80f1737048b8ced954ed03" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneAssetLocation_ListByScene", + "sha256": "8dc4ca56dd7e9612c0482989cfacfda7afea53837060b7272e1664f868b00d37" + }, + { + "kind": "module_sha256", + "name": "dbo.Timeline_GetByProject", + "sha256": "c5cd747a8acb7e24f01056acc0ab3e2fe381839c9763b6bd3d99fda4b036539b" + }, + { + "kind": "module_sha256", + "name": "dbo.LocationRelationship_ListByProject", + "sha256": "7c04a0923abefbf58d75efdddc056fd774f44ce13350499f6a6f129274cffd3a" + }, + { + "kind": "module_sha256", + "name": "dbo.LocationRelationship_Archive", + "sha256": "065ba9c89ce75f75ccfaef33cadf1a7668e7a590f30806b947cac3d93dbf3cad" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneAssetLocation_Delete", + "sha256": "8c0ea58cc30b74c3a876bb780d6377667d9084a420af04be830074289ade1a12" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneAssetLocation_ListByLocation", + "sha256": "e02c7a3287eb4ad174cf2d6377084eb6dc2a45c590f295da7b6cce6ef4fc84a2" + }, + { + "kind": "module_sha256", + "name": "dbo.LocationScene_ListByLocation", + "sha256": "21cae49f18b3303ebb03056fe28ad186a7d6b63cbaf094911f7b2b46e4b02de5" + }, + { + "kind": "module_sha256", + "name": "dbo.LocationCharacter_ListByLocation", + "sha256": "8cf55e5389c60d5cb128d71d2644d7646c59cc743617d012df97d72face15101" + }, + { + "kind": "module_sha256", + "name": "dbo.LocationCharacter_ListByScene", + "sha256": "abe2c899caac4a1eee9a78f22159ddfd37f6f08c18d57474ea8b90f2a923fbdc" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneAssetLocation_ListBySceneLocation", + "sha256": "124553f442dd2acecd312c50ef3475f5f95f707ca4871c96c15caa9aaa5bffad" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryAsset_ListByProject", + "sha256": "3470fcfca02d1ea6d77a04396fdfbfa0855fe3bd746f219ee1fb61c62f1a8084" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryAsset_Get", + "sha256": "dd3b9b26662831ba62338404eeaf95315a689ee0777356179fe8c334f9061569" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetTimeline_GetByProject", + "sha256": "82d4e5ad8c882d15f8ca1ab529833e2dfd98fb0f987a98c05fddf99e658146b4" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "008_Phase1G_ContinuityWarnings", + "file": "008_Phase1G_ContinuityWarnings.sql", + "sha256": "c4763b34dd1f2866eb78189b9fd772216b3f8b69f680ae76a4ad9bc078bb328a", + "requires": [ + "007_Phase1F_Locations" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.WarningTypes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WarningSeverities", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ValidationRuns", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ContinuityWarnings", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.SceneDependencyTypes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.SceneDependencies", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.WarningLookup_All", + "sha256": "4aa86d2b24a5e6837ec58882a5296f9263dd300c7d8e400f1f862ab3ca0f687a" + }, + { + "kind": "module_sha256", + "name": "dbo.ValidationRun_Create", + "sha256": "bd050a3c7e1ca6d4956562d1b34344e033398344411b25a61debad763f9d248b" + }, + { + "kind": "module_sha256", + "name": "dbo.ValidationRun_Complete", + "sha256": "4dfd60939dd95231fb23f606a534c529e4652f7ceae05093a68357f5bd48dad0" + }, + { + "kind": "module_sha256", + "name": "dbo.ContinuityWarning_ClearActive", + "sha256": "2ce0fdc7979cffa8d7ebf57d533c127f74c45cdab3d106f36137f3c521e3333d" + }, + { + "kind": "module_sha256", + "name": "dbo.ContinuityWarning_Upsert", + "sha256": "83afa958de674e8f1aa839871b0ea332dd2da0807b23f857bb9a07cf2ae98d04" + }, + { + "kind": "module_sha256", + "name": "dbo.NarrativeSceneOrder", + "sha256": "b9124958958b4079a1e5c17f5b8fbf91e996aba88253537381a23a88312426bf" + }, + { + "kind": "module_sha256", + "name": "dbo.NarrativeSceneOrder_GetByProject", + "sha256": "55920573b01249d01289ca4f1ec2ba97d3e425ca023f7c29244c4dde58d324a9" + }, + { + "kind": "module_sha256", + "name": "dbo.ContinuityValidation_ValidateProject", + "sha256": "560aeaa375c5df70c5cdf2e2f3996cb94e9e0c7953034742716ab82d606fe3d0" + }, + { + "kind": "module_sha256", + "name": "dbo.ContinuityValidation_ValidateBook", + "sha256": "90323c45b02f717031e25e511a69da264564b18fc87a24cfd830344ca14e1e2a" + }, + { + "kind": "module_sha256", + "name": "dbo.ContinuityValidation_ValidateScene", + "sha256": "09c8bf973aab43ad3eb13cdcea56cc0ee93724fb04b1c77c508cf16dfef9b702" + }, + { + "kind": "module_sha256", + "name": "dbo.ContinuityWarning_List", + "sha256": "529162cd5e9f3ba826c16d2bdb120bfd6014575a7c7ecb7e5016fda32aed4949" + }, + { + "kind": "module_sha256", + "name": "dbo.ContinuityWarning_ListByProject", + "sha256": "e78280b3001a64dce523a63e4e96aa3e60d25001507b7409e2637bec6311884c" + }, + { + "kind": "module_sha256", + "name": "dbo.ContinuityWarning_ListByBook", + "sha256": "c5dfc14ade9b133f4d282b42a1b2c3bf33ab77ed0c666d07eb3905ba2cd61040" + }, + { + "kind": "module_sha256", + "name": "dbo.ContinuityWarning_ListByScene", + "sha256": "d3057cf54249a46e725881cd9ee0f214a1263b7ab88c4c9156983694008e3d53" + }, + { + "kind": "module_sha256", + "name": "dbo.ContinuityWarning_ListByEntity", + "sha256": "c416351341f0b532e458b345e8c38d3292addf086d19904dae9c73e1aab62992" + }, + { + "kind": "module_sha256", + "name": "dbo.ContinuityWarning_SceneCounts", + "sha256": "104c6f81ce8f31101e18f6bb9f0a3ac5500b677178309bd5fcd92fd8a034c9b1" + }, + { + "kind": "module_sha256", + "name": "dbo.ContinuityWarning_SetState", + "sha256": "37a03e3a12803128cf4645a0913cc2e4033cadbe79a2cf99aa24986187cf0d38" + }, + { + "kind": "module_sha256", + "name": "dbo.ContinuityWarning_Dismiss", + "sha256": "7c8088183d92474ee264fca9440ca2f65ea6974bd6fa7f491c00fc80ab05bc86" + }, + { + "kind": "module_sha256", + "name": "dbo.ContinuityWarning_MarkIntentional", + "sha256": "e6130600a5f16682121e49c916de076da789c49afc665ef15120be5007022d6e" + }, + { + "kind": "module_sha256", + "name": "dbo.ContinuityWarning_Restore", + "sha256": "04ba0d3483b81c333f1cdc943535e2807779fefa6c18e347bdd2f1eda3851263" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "009_Phase1H_SceneDependenciesAndMoves", + "file": "009_Phase1H_SceneDependenciesAndMoves.sql", + "sha256": "2d9ce67b0700db0ae30a5442c26e5a2000342fe47cd23e7db25368c00d65e9e6", + "requires": [ + "008_Phase1G_ContinuityWarnings" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.SceneDependencies", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneDependencyLookup_All", + "sha256": "eef37f2d04e56e01d8a07544499d6cf7bd3fe4f260f3082ac71eaec764b735d7" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneDependency_Save", + "sha256": "ca50a7e61b09e8d5c826bad4b0008a19c272d258b707ac4ee342ecf7ae6b63e9" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneDependency_Archive", + "sha256": "59c19feaa6ef41656137ab4d12517be395338fe74dd6f4da4bc526d999d08905" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneDependency_ListByScene", + "sha256": "fe48c19cc7783881cbd8cbe999c08c171d995729b5771dae266cd09879f66a80" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneDependency_ListByProject", + "sha256": "f0ad39494b7ee6e4a257090a0f41a5038b4cca6962f20b23d627d19207a50a5d" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneDependency_Counts", + "sha256": "0ded38a18e8caf894a6b8169ec26e90acc786bda75d709261c51bd64c73bfa15" + }, + { + "kind": "module_sha256", + "name": "dbo.ChapterOption_ListByProject", + "sha256": "9792c34a053bc08cfc60ddbc444f22006b7b19ebbf44a09a46f09969037cc3dc" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_NormalizeSortOrder", + "sha256": "d31fe095939d3c5f477b1a0dab642742d2087c68cd89bb9bb4a4e1bbce7ee608" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_RenumberChapter", + "sha256": "604560d3b289cb45d728e5512dc0c12b2a64f9c488d72c9daa9a6ad02136dbaf" + }, + { + "kind": "module_sha256", + "name": "dbo.Chapter_RenumberBook", + "sha256": "a4948c5e39525cf02a6071d403b616c951100ea921b9d7342d81b7039def8191" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneMovePreview_Get", + "sha256": "df4e729bf170bd726826b9d74b6d8fd21db253a526063a90c2d9d83018bda045" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_MoveToChapter", + "sha256": "4e06d62342645973ab2de103039efd676199214fd3152651aaf98a26820ebd10" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneDependency_FinaliseWarnings", + "sha256": "8ca418f93712fad2f708f7c5b5487031babef02ff2748c441051e64c87c1d4d9" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "010_Phase1I_Analytics", + "file": "010_Phase1I_Analytics.sql", + "sha256": "a50bc3af780d1c993223dc4cf6d16ca5f4f2d29274786065dbe53fabe33f9978", + "requires": [ + "009_Phase1H_SceneDependenciesAndMoves" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.Analytics_StoryHealth", + "sha256": "e0922838605895f627fd3928bdedb96f798fbfe807474bf865ffc7563a3b33c9" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "011_Phase1L_TimelineViewPresets", + "file": "011_Phase1L_TimelineViewPresets.sql", + "sha256": "456328a2063b3399486b4d9ca724d82ecebcb1cda9ae818e95657d73e8b46f4e", + "requires": [ + "010_Phase1I_Analytics" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.TimelineViewPresets", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.TimelineViewPreset_List", + "sha256": "5e7271486cf30422e64779a1f8b7b8818c4c63fca192f8a4ea8f43b9b21fb6b9" + }, + { + "kind": "module_sha256", + "name": "dbo.TimelineViewPreset_Get", + "sha256": "05d1fba211f2baf5b7af99f8b8a7ddf4d626eda7eb8d140342c44435ef31d499" + }, + { + "kind": "module_sha256", + "name": "dbo.TimelineViewPreset_Save", + "sha256": "5f02f32311d70852fa870f8c786004bac15667e494aabdb10affc8257210a073" + }, + { + "kind": "module_sha256", + "name": "dbo.TimelineViewPreset_Archive", + "sha256": "e0a27bea381499572258ae617685e14a83ab2c8c73b99498061040c87ce134b4" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "012_SceneCharacterEditing", + "file": "012_SceneCharacterEditing.sql", + "sha256": "93921031d3602b0a78a60c63791bb9671bba0b1ffb04d12a172b0ab7eba390eb", + "requires": [ + "011_Phase1L_TimelineViewPresets" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.SceneCharacter_Save", + "sha256": "7f9a89cbc27f20fbfae47804211e801c446c03683d0528fe1684002e25629803" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "013_Phase1N_DragDrop", + "file": "013_Phase1N_DragDrop.sql", + "sha256": "4a47d359f0a12437bbba774b23c785542598ad0b857647a540080e6d9d6a47bf", + "requires": [ + "012_SceneCharacterEditing" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.Scene_MoveRelative", + "sha256": "4a0c76717c0b162eb603659b03502dc03da1d739c01ef9dfc9358c440ddc0477" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "014_Phase1O_StoryBible", + "file": "014_Phase1O_StoryBible.sql", + "sha256": "c67eaf890c2e3041a53cf1ddb0a00650765e45e9272e291f91b8af261338a8a6", + "requires": [ + "013_Phase1N_DragDrop" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.StoryBible_CharacterSummaries", + "sha256": "6f6f4ffb5b451a45da2ced1bf76c449295a38cee1af3f3b75931d8986ce97498" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryBible_ThreadSummaries", + "sha256": "dc80340995f80f5eec76edebcca1c9c200f17d95559fa702d4d380a2874d4291" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryBible_AssetSummaries", + "sha256": "c153c18378caccb9489b8ae513f9b326440289ea88f7eb626595972ec36c7f5e" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryBible_RelationshipSummaries", + "sha256": "5e4e1fbd0e65b6990f486d5b4689411238a983550079f85025d560c85e45c8ff" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryBible_LocationSummaries", + "sha256": "b915fee868d8482c62d50dce3e497a32857a2e615f8c9a1cb7bdf059dd7fd09f" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryBible_TimelineSummary", + "sha256": "29342c0e54343935d0f7cde90f32a7eb0cf9f8b0d2ec23a9c49e8527899c1d4e" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryBible_OpenQuestions", + "sha256": "f0d7f3a3608de7553c007c252fce0bba7f9212bb2b3f7073a31a0a1a71158526" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryBible_RevisionProgress", + "sha256": "ead9d1fac30b72e73b188b736d2b993287c5b12e3e43a609cfd33b7099f2d476" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryBible_Search", + "sha256": "4b4e8f8c78469d2134a5140adf7517bdaf21babe4af8ed05a2c69dc194eb94a8" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "015_Phase1P_WriterWorkspace", + "file": "015_Phase1P_WriterWorkspace.sql", + "sha256": "2e2a766dcadf5bcc68cdd9dd38aafe41971c2edf2ea1f444d2380adaa1b9f5ca", + "requires": [ + "014_Phase1O_StoryBible" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.SceneNoteTypes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.SceneNotes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ChapterGoals", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.SceneWorkflow", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.SceneChecklistItems", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.SceneAttachmentTypes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.SceneAttachments", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneNoteType_List", + "sha256": "7b380da00856b4ad1807c09a9ac93f3337ba093195bc9a99feb70ddcebaf9b92" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneAttachmentType_List", + "sha256": "e495045ccc2e9d929de78c631da4d5b803124ff2767cffabb89a26a2d0311a36" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneWorkflow_Get", + "sha256": "2b03b58db7efb00cc2e12cfc237d1ac4275c2877b023cca766f5409ca4d78d82" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneWorkflow_Save", + "sha256": "91fe8166a651ea9d332ae726b34d856057ff0ab76c328b1960a54083b3f70ff6" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneNote_ListByScene", + "sha256": "19f9b05f3a7335c958cb07ef3a5c5ebb053578326e024a0fc64a302035db7343" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneNote_Save", + "sha256": "22429279f5d63f408538cb43e21cc67e165bb59dd7e0ccb5686cece4e352f2be" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneNote_Delete", + "sha256": "5952233946e8929a8dc51ba056247aaa4f6f8e1c1d061bca6e540600dbd6204c" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneChecklist_ListByScene", + "sha256": "fcc406092b891e369b389e15681a0068d36305b5d9915184b74463acc00c5fb4" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneChecklist_Save", + "sha256": "0a17b3352eb03e549b0fdcaf7c2e56615442b2a14a4cadba69d7af12a984b221" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneChecklist_Delete", + "sha256": "931336167a128f88fbac4936b48e09293986dd08ba760782fe635cf022d3226f" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneAttachment_ListByScene", + "sha256": "7778be0897be66ab2d82fc90cb272a8a9a174a396e9aaf11efb2437d5840380b" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneAttachment_Save", + "sha256": "6f6de0dea312c6958219e323083c4c56deb7a59d2a06b9da5f4efc01ce1deed6" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneAttachment_Delete", + "sha256": "dff5eaaa20a0753deb0dd45cdce9118bf18f88e5f447177d105c86eb7d313499" + }, + { + "kind": "module_sha256", + "name": "dbo.ChapterGoal_Get", + "sha256": "5511b3ff289296e4a9ca54b9b54d6662945b8d538db3a610dc165d498cf3ba0d" + }, + { + "kind": "module_sha256", + "name": "dbo.ChapterGoal_Save", + "sha256": "33d4c56a32152c9e915b3e7c22ba8aaf819ca9295c4049b8146bebad31ea2c66" + }, + { + "kind": "module_sha256", + "name": "dbo.ChapterWorkflow_Summary", + "sha256": "393e49eab4e4bef7abf185896f983165e60ce4dd153584981095886a28dbc6f9" + }, + { + "kind": "module_sha256", + "name": "dbo.WriterDashboard_Scenes", + "sha256": "0d40abcfc070283836ba2c6d80b85f115e6ad0bb14dca488ab883f825c94087e" + }, + { + "kind": "module_sha256", + "name": "dbo.WriterDashboard_Reminders", + "sha256": "02a59a7c517014d3d0cca3694bdaec2d80fa23947d50ac44ae494adba0efc34e" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryBible_Search", + "sha256": "4b4e8f8c78469d2134a5140adf7517bdaf21babe4af8ed05a2c69dc194eb94a8" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "016_FixCharacterTimelineAppearanceLabels", + "file": "016_FixCharacterTimelineAppearanceLabels.sql", + "sha256": "64eda0a0a59d068537c7fe1a30a6a136d75bd0ab8517bce46fbc4e495ab79a7b", + "requires": [ + "015_Phase1P_WriterWorkspace" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.CharacterTimeline_GetByProject", + "sha256": "08fa54377115534bd14cb5614662312bd8ae0820afca59305475e062f8195c05" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "017_Phase1Q_Exports", + "file": "017_Phase1Q_Exports.sql", + "sha256": "9d5a1924f3538107b06d2d139860f05fe4ce796b89453dd747b160b8a85d8bad", + "requires": [ + "016_FixCharacterTimelineAppearanceLabels" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.Export_StoryBible", + "sha256": "0272acf72ef525828b5319fbdf2f79d298c995d8c026b9a62affb86e5fd44fd9" + }, + { + "kind": "module_sha256", + "name": "dbo.Export_NarrativeTimeline", + "sha256": "b01df7742e6dbea2bd019bc664aa41dbf2eb85c5bf88f591b5fee60cef19701d" + }, + { + "kind": "module_sha256", + "name": "dbo.Export_SceneBrief", + "sha256": "f73c1d0cb9ddeb40683d508f01f201e53a0edfa9f47f76a448328780627e5ddf" + }, + { + "kind": "module_sha256", + "name": "dbo.Export_ChapterBrief", + "sha256": "3ffae4882e6dc64b6609702061bc1f251a048748fd33428924932ee7f627d0dd" + }, + { + "kind": "module_sha256", + "name": "dbo.Export_WriterSessionBrief", + "sha256": "9af917a799ba724f15716800d209ebf8b6e6415f7d7e2ecacace6892aafda968" + }, + { + "kind": "module_sha256", + "name": "dbo.Export_CharacterReference", + "sha256": "751eb9165cc2a72615a169a39123e5e6e0f277afc74b143bac57757300cf06b6" + }, + { + "kind": "module_sha256", + "name": "dbo.Export_ResearchPack", + "sha256": "703d3310ef24503478f62b2798aef4cde1f7847d030e215fa01748644297eb40" + }, + { + "kind": "module_sha256", + "name": "dbo.Export_SearchResults", + "sha256": "e07460fb66dbd4310e4457b50ee72946b8f1b9f957e88c7a75997bf941d12e35" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "018_Phase1R_Dynamics", + "file": "018_Phase1R_Dynamics.sql", + "sha256": "2f04b24d88b37517dc7a4a2ad4b79bd558106a70d1968c19630bb01ecf08bddb", + "requires": [ + "017_Phase1Q_Exports" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.Dynamics_CharacterArc", + "sha256": "100f5bc6468913b7e6dfd1d989714d9f1b157beb644ca52ff930f5aca9c91c67" + }, + { + "kind": "module_sha256", + "name": "dbo.Dynamics_RelationshipEvolution", + "sha256": "491aaaa314cdf272ff7eb294d2bad272f30d22e741f780d59f2ba4d8c4890956" + }, + { + "kind": "module_sha256", + "name": "dbo.Dynamics_KnowledgeTimeline", + "sha256": "bff2db7490a0a9cb118742af8915f9e1cd16fb4446362435ca90607bc357c0a2" + }, + { + "kind": "module_sha256", + "name": "dbo.Dynamics_StoryDashboard", + "sha256": "a17409105be9d55a5f570687bf50509bcd9efa0d7f6708a7e4c9e2c47d3a63d2" + }, + { + "kind": "module_sha256", + "name": "dbo.Dynamics_RunContinuityChecks", + "sha256": "29ca673f765a38014857f92af6242cb52a672e14f5448e9ff60c61693fa73a29" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "019_Phase1S_Scenarios", + "file": "019_Phase1S_Scenarios.sql", + "sha256": "0678bbb693c26dbd3fc83b0a161e43047dc9944cefcc7e7d9ddfcfd09f7292f0", + "requires": [ + "018_Phase1R_Dynamics" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Scenarios", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ScenarioSceneOrder", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ScenarioValidationRuns", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ScenarioWarnings", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.Scenario_List", + "sha256": "91ed8b20f9f4ed7e47e2288422e0a6d63fe68fafb98ed98d0ad09f6d9257ccbc" + }, + { + "kind": "module_sha256", + "name": "dbo.Scenario_Get", + "sha256": "58ceae9a3f94e46fc21ab2aabc39ec580a376a5fa395d9dd9e201892b22e2e56" + }, + { + "kind": "module_sha256", + "name": "dbo.Scenario_Create", + "sha256": "b980aa2d1d8b8bafcc157c926ad9ed027a0cb5b15467d546bd5ca8f54e896589" + }, + { + "kind": "module_sha256", + "name": "dbo.Scenario_Timeline", + "sha256": "de8d38a76b68beb2a8064c92c911639b5225ccfcd9ac495a1a0a1663a439880b" + }, + { + "kind": "module_sha256", + "name": "dbo.Scenario_MoveScene", + "sha256": "891ada1bfd1f8c139e8cfefd7bb2c0a546612629eabd2263168081efa26d83ad" + }, + { + "kind": "module_sha256", + "name": "dbo.Scenario_Validate", + "sha256": "d54af16dc246d90d1e830a536a0eddfa44c18bf7361488f536ae1af8db30fee8" + }, + { + "kind": "module_sha256", + "name": "dbo.Scenario_Compare", + "sha256": "89b892902958f91374361047568703545ca31451b7ed0736a42200d84eb74423" + }, + { + "kind": "module_sha256", + "name": "dbo.Scenario_ApplyToMain", + "sha256": "ce6cf5327367d876cf2324987463a7b031b2c7db6734618d8f757741126db60b" + }, + { + "kind": "module_sha256", + "name": "dbo.Scenario_Archive", + "sha256": "b2d987ea31a94b03f2c11c76a6d3733bdd03662f139e8be5acffe3e822e2e9e3" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "020_Phase1T_ArchiveRestore", + "file": "020_Phase1T_ArchiveRestore.sql", + "sha256": "aa00c69667b77564556738e2d583e3297821be93f8510821fb44dc651ca6b743", + "requires": [ + "019_Phase1S_Scenarios" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.Archive_List", + "sha256": "5de22d3f0cc74d3709f812b2edfb087c29fa066b0ae04f187104da8be86ff1d2" + }, + { + "kind": "module_sha256", + "name": "dbo.Archive_Entity", + "sha256": "9b3e3e682c6b675a128b79cdbbc7a6de3b8d672f6f17bc2f1ea7e91ef97edb4a" + }, + { + "kind": "module_sha256", + "name": "dbo.Archive_Restore", + "sha256": "0c03e3bf55e703467787a24f817cc8e3b7caf926e98e0b7cf76745dd563e48ee" + }, + { + "kind": "module_sha256", + "name": "dbo.Archive_ProjectFilterList", + "sha256": "26d0933b8b3080d21e6c0201b2efc5efa8da3a982bbf3de6bbb3e5802902de61" + }, + { + "kind": "module_sha256", + "name": "dbo.Archive_DeleteForever", + "sha256": "3379673cd28b8b4786c5f4b21339532a9c4e4958cdeb1c6fdc3bb4ce84d92356" + }, + { + "kind": "module_sha256", + "name": "dbo.Project_Archive", + "sha256": "98154581b97a384e45360a5693f7dea267963fafb8041b451a484963b7ab691d" + }, + { + "kind": "module_sha256", + "name": "dbo.Book_Archive", + "sha256": "83bd1c70fefc7326d1b0c8a0127620276e7bdc3e82256605b0693827d67149f7" + }, + { + "kind": "module_sha256", + "name": "dbo.Chapter_Archive", + "sha256": "0651ef08563c532bf0c8bba35e2a78250df48cc66324b58f606af9fc96daab86" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_Archive", + "sha256": "47e6d4ad52be74cc790ecce2bdb50efbe2fa0caff6faffd9c0b5120fd5309e5a" + }, + { + "kind": "module_sha256", + "name": "dbo.PlotLine_Archive", + "sha256": "59ee5f5bc2025b528015508786197164a23ee97add6819008a03e52169a82792" + }, + { + "kind": "module_sha256", + "name": "dbo.PlotThread_Archive", + "sha256": "89f882f0cf834e2097d7950c917839ae39498f80ebcdcc1e60eb18ddbcf4c23f" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryAsset_Archive", + "sha256": "b3e5695b8813b3c7fe8421769fc7f34153e5143ef9bb0e35bc1dd36dd6c42c09" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_Archive", + "sha256": "8cdea349abb25d0d87265b20a6137a8311790b30953dc8dfc84dafe4a2a36114" + }, + { + "kind": "module_sha256", + "name": "dbo.Location_Archive", + "sha256": "402f12067feb51896ca907716fbfc639d96d57cf8582266862590e9f15c7dd80" + }, + { + "kind": "module_sha256", + "name": "dbo.Scenario_Archive", + "sha256": "b2d987ea31a94b03f2c11c76a6d3733bdd03662f139e8be5acffe3e822e2e9e3" + }, + { + "kind": "module_sha256", + "name": "dbo.Relationship_Archive", + "sha256": "fd39cc6edbed64510eef2b90e97fee0c6646da9b9d188da6f68e9f82d11f647e" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneCharacter_ListByScene", + "sha256": "6567229e32116002ecdbf7b7ccc3ae5111c1c48f2fc556bbf5dfc0e14e62ef5c" + }, + { + "kind": "module_sha256", + "name": "dbo.ThreadEvent_ListByScene", + "sha256": "9550d82718b2762c9919513976c449139569378a0e08716e82c328aab6f10aac" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetEvent_ListByScene", + "sha256": "b32c106283f82f838bb8edc0357714a4aa74d0df839d16f912580995af8e61bf" + }, + { + "kind": "module_sha256", + "name": "dbo.RelationshipEvent_ListByScene", + "sha256": "08a91ecf8970b702646b13a07a10d83f4e4110f4dded40d237d325def6a527ae" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterKnowledge_Delete", + "sha256": "c04f359bb5712b583935ebcb3c07d2744f0961a9f7f07c9e9d758a84a765d1d5" + }, + { + "kind": "module_sha256", + "name": "dbo.RelationshipEvent_Delete", + "sha256": "37ee98ecdc464ca8d7950111090b51f3a38873d3e5aec8c5a05a1ae32de5c401" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "021_Phase1U_AcceptanceChecklist", + "file": "021_Phase1U_AcceptanceChecklist.sql", + "sha256": "baf06069e4f69c8ac26541b3ae31bd94c4747ac718f819fc79f9c09be5bb0b3d", + "requires": [ + "020_Phase1T_ArchiveRestore" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.Acceptance_Phase1Checklist", + "sha256": "b5b47cbaf014a5b66af567f98daa621e283f42df8efb2039ad3dcc4af2429306" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "022_CharacterImportance", + "file": "022_CharacterImportance.sql", + "sha256": "2fa8552d01741d33b565321ab109c0283323f423404623574c456a8b2e32a5b6", + "requires": [ + "021_Phase1U_AcceptanceChecklist" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Characters", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_ListByProject", + "sha256": "dface619a6e4547ac7003a4beb5798e85e917457b143fa5c802e400029f4b14b" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_Get", + "sha256": "7dd1cd990f714acdbf29b90c3be2474657354b0fafc2013631e564251ef1156b" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_Save", + "sha256": "a3f0dd48692bda0d4f7a728001d4fac1e931502b7c2e50a080ff1fa4600d342a" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterTimeline_GetByProject", + "sha256": "08fa54377115534bd14cb5614662312bd8ae0820afca59305475e062f8195c05" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "023_TimelinePerformanceIndexes", + "file": "023_TimelinePerformanceIndexes.sql", + "sha256": "0038b0b862df11d51068977c261217a7e365591e27dc34cfcab8323a8394bbef", + "requires": [ + "022_CharacterImportance" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.SceneDependency_Counts", + "sha256": "0ded38a18e8caf894a6b8169ec26e90acc786bda75d709261c51bd64c73bfa15" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "024_CharacterTimelinePerformance", + "file": "024_CharacterTimelinePerformance.sql", + "sha256": "fe500b851ab75d16b4829d4c7fb6e95b98206ba60a707f05fcf837c4ba144fef", + "requires": [ + "023_TimelinePerformanceIndexes" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.CharacterTimeline_GetByProject", + "sha256": "08fa54377115534bd14cb5614662312bd8ae0820afca59305475e062f8195c05" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "025_AssetTimelinePerformance", + "file": "025_AssetTimelinePerformance.sql", + "sha256": "94aad8d0e4482474efc45bfd5a49c3cc13b6c399034fe2af7e870fcff6b7f3d0", + "requires": [ + "024_CharacterTimelinePerformance" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.AssetTimeline_GetByProject", + "sha256": "82d4e5ad8c882d15f8ca1ab529833e2dfd98fb0f987a98c05fddf99e658146b4" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "026_TimelineConfigurationSettings", + "file": "026_TimelineConfigurationSettings.sql", + "sha256": "c6c4053c2f0aa8e2366367158b00581cb43cd9cdab5d73bf0b0764370a55cc14", + "requires": [ + "025_AssetTimelinePerformance" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.ProjectTimelineSettings", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ProjectTimelineMetricSettings", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectTimelineSettings_EnsureDefaults", + "sha256": "5c081f9f7c1d18da649deba14ca58ec8d2230d96548d877bf2ae8428b7225fb2" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectTimelineSettings_Get", + "sha256": "54a2d45eb4c203ddcb9cba2d6795bd76fb1db4f6b918eef5513ac5c23011a5fd" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectTimelineSettings_MetricTypes", + "sha256": "f9a21010e812de670301c5c49c9b17eaabdd41199afdcc5185604a87c189f6ab" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectTimelineMetricSettings_List", + "sha256": "2340371056bb26a353d3b2ac5980324dad7e6f7491e9c287af9194cc03f1d3e6" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectTimelineSettings_Save", + "sha256": "a46c2b18f27c6cc7f807cbbdfc4f202bcdeebc20ce12d5ee1016592f4fd8eee0" + }, + { + "kind": "module_sha256", + "name": "dbo.Timeline_GetByProject", + "sha256": "c5cd747a8acb7e24f01056acc0ab3e2fe381839c9763b6bd3d99fda4b036539b" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "027_DragDropQuickAddBar", + "file": "027_DragDropQuickAddBar.sql", + "sha256": "d0206224bb26214ddb384e1f98c77c28aea16495a95bd2f1dfa2e6f53328500d", + "requires": [ + "026_TimelineConfigurationSettings" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Characters", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryAssets", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.Locations", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_ListByProject", + "sha256": "dface619a6e4547ac7003a4beb5798e85e917457b143fa5c802e400029f4b14b" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_Get", + "sha256": "7dd1cd990f714acdbf29b90c3be2474657354b0fafc2013631e564251ef1156b" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_Save", + "sha256": "a3f0dd48692bda0d4f7a728001d4fac1e931502b7c2e50a080ff1fa4600d342a" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterTimeline_GetByProject", + "sha256": "08fa54377115534bd14cb5614662312bd8ae0820afca59305475e062f8195c05" + }, + { + "kind": "module_sha256", + "name": "dbo.LocationPaths", + "sha256": "a8414027654a772958659787a3023b7aee8f0a883fef00f73059d03c0f3b6287" + }, + { + "kind": "module_sha256", + "name": "dbo.Location_ListByProject", + "sha256": "8ef87333010e0b3e43e0493edc40584317445e11ac9aaf604086cd106cc6749d" + }, + { + "kind": "module_sha256", + "name": "dbo.Location_Get", + "sha256": "7f8009a7a8570b19a1cb1b61f03c801e05685338617358bbceefbe13d0d6082b" + }, + { + "kind": "module_sha256", + "name": "dbo.Location_Save", + "sha256": "2da83c20f059677e586cd5436f4abfec065e6f55a874a8af113ad57496a594fd" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryAsset_Save", + "sha256": "cef147d5d8b7dbb79baf51a965ef3f8b36185f9527474b82181c2b02477eac34" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryAsset_ListByProject", + "sha256": "3470fcfca02d1ea6d77a04396fdfbfa0855fe3bd746f219ee1fb61c62f1a8084" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryAsset_Get", + "sha256": "dd3b9b26662831ba62338404eeaf95315a689ee0777356179fe8c334f9061569" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetTimeline_GetByProject", + "sha256": "82d4e5ad8c882d15f8ca1ab529833e2dfd98fb0f987a98c05fddf99e658146b4" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "028_GenreMetricPresets", + "file": "028_GenreMetricPresets.sql", + "sha256": "7a1bd2c490896c2c3076ff56aa5d290f1d06e8d55d93120c5db654ba00f3e196", + "requires": [ + "027_DragDropQuickAddBar" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.GenreMetricPresets", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.GenreMetricPresetMetrics", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.GenreMetricPreset_List", + "sha256": "297fe853062abae15e776416a9231cd764b34006a004a2118a51a8a13dd02d87" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectMetricPreset_Apply", + "sha256": "a53ce5bb60ad030f36a953c38b1e9e3e3d8cec965ed9ffd36a3ec3876f7298c2" + }, + { + "kind": "module_sha256", + "name": "dbo.Project_Save", + "sha256": "2796d2571689cada0262a4f773a8dd182b8e1fcf2611d4dfafe4acac3ad5aa63" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneMetricType_List", + "sha256": "8ef0ad03fff4d41013da4e8ff9fdc8b721c544c08b1fda7ce1ee2a459abf3da2" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneMetric_EnsureDefaults", + "sha256": "af04012030fdb6f88a4907a1d691228003504b9eeb638e863119563f08226c42" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneMetric_ListByScene", + "sha256": "a85dca9c260bd78ed3e8f999e39e8f3c3e6ca218de8e04165a0acbd33c38c2ae" + }, + { + "kind": "module_sha256", + "name": "dbo.Analytics_StoryHealth_Remainder", + "sha256": "d2386cc84a558a852d7f1e54dab087a6bab13866eaa7651e4c1953d181565cbd" + }, + { + "kind": "module_sha256", + "name": "dbo.Analytics_StoryHealth", + "sha256": "e0922838605895f627fd3928bdedb96f798fbfe807474bf865ffc7563a3b33c9" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "029_ProjectSceneMetricsManagement", + "file": "029_ProjectSceneMetricsManagement.sql", + "sha256": "463c1269c32be8e04e8399f31796d1d3219eeebd1f91367090fd94150405f9e7", + "requires": [ + "028_GenreMetricPresets" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.SceneMetricType_ProjectHasMetrics", + "sha256": "693c40ea665325e481d6cfab2440f8eea601a4ccbd2a7a87f1f8aa23e32624f7" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneMetricType_AddMissingDefaultsForProject", + "sha256": "5499069e53b3092980ddc4fb4fe8477b20fab8cdd9d6b8f447c4e226ff27dc82" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneMetricType_ListForProjectManagement", + "sha256": "fb2182f2e714a49e829e72a14a65ae3638f0306762c9683df952c044b3cf592d" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneMetricType_GetForProject", + "sha256": "f9bdf4495c0300f268e96aa8174e50824251e61eb53f148fcde032679c0a3add" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneMetricType_SaveForProject", + "sha256": "54d62ee2f61c843ecf2fd751d0e9b1483761fbe77fe092655e9afe51868a1a4b" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneMetricType_SetActiveForProject", + "sha256": "9064f0e077869b877ddee01b1867d6dcf42a62033df75919829c20186771eecd" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneMetricType_MoveForProject", + "sha256": "1b6489ea3d9acae12892a58257c78b53263d9ab3a15c6c6ecacff7559ea00a93" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneMetricType_RemoveUnusedForProject", + "sha256": "e0d2658cd306205f8880e60c172820dd3f301ec7fc05ed58ef33f4d52848009e" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectTimelineSettings_EnsureDefaults", + "sha256": "5c081f9f7c1d18da649deba14ca58ec8d2230d96548d877bf2ae8428b7225fb2" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectTimelineSettings_MetricTypes", + "sha256": "f9a21010e812de670301c5c49c9b17eaabdd41199afdcc5185604a87c189f6ab" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "030_Phase2A_RelationshipFoundations", + "file": "030_Phase2A_RelationshipFoundations.sql", + "sha256": "c83e0beb3dea56e9dcf7a8543aa4ec69f79caa86b3020f41688e6de8c91fba1c", + "requires": [ + "029_ProjectSceneMetricsManagement" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.CharacterRelationships", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.Relationship_ListInitialByCharacter", + "sha256": "1b5e9be919563f1c89356b751344f53777036451d38387f7b254a06f46377fe1" + }, + { + "kind": "module_sha256", + "name": "dbo.Relationship_ListByCharacter", + "sha256": "7b349793b38c8d9c614fbcaf5ddf3af7d4c7da532a3856fdc1b8705ed45b30ef" + }, + { + "kind": "module_sha256", + "name": "dbo.Relationship_ListByProject", + "sha256": "8337781e493dc6f6ce7cbf06821fbbfdcbfad18318943764646db84331edaba4" + }, + { + "kind": "module_sha256", + "name": "dbo.Relationship_Save", + "sha256": "8f1cff706b0a37b5a3a46e408b22c90af08328a1d85240b450996074e27a0e51" + }, + { + "kind": "module_sha256", + "name": "dbo.RelationshipEvent_ListByCharacter", + "sha256": "7c5c42c8012f4075b822ced5891eb2c364bc059d2e0d92663ed0cd992a016510" + }, + { + "kind": "module_sha256", + "name": "dbo.RelationshipEvent_ListByScene", + "sha256": "08a91ecf8970b702646b13a07a10d83f4e4110f4dded40d237d325def6a527ae" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "031_Phase2B_RelationshipTimeline", + "file": "031_Phase2B_RelationshipTimeline.sql", + "sha256": "80d3c498388281d239c3c9b9392d8e51021d2df2bcaf1cea1130a56130f1a238", + "requires": [ + "030_Phase2A_RelationshipFoundations" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.StoryBible_RelationshipSummaries", + "sha256": "5e4e1fbd0e65b6990f486d5b4689411238a983550079f85025d560c85e45c8ff" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "032_Phase2C_RelationshipCategories", + "file": "032_Phase2C_RelationshipCategories.sql", + "sha256": "65d14495f073745b82ec9e7eb67afde9549c6de6a7939bf33a68bcfc17b949e2", + "requires": [ + "031_Phase2B_RelationshipTimeline" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.RelationshipCategories", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.RelationshipTypes", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.RelationshipCategory_List", + "sha256": "0049c49a398292d6d6b94beec03189ca79ea92cf3028241aeddc333194e71002" + }, + { + "kind": "module_sha256", + "name": "dbo.RelationshipType_ListWithCategories", + "sha256": "59eb7953d8e24ef66cd8b64f725fd68c6c5a0c978183e0223fe357c3d29fbdc5" + }, + { + "kind": "module_sha256", + "name": "dbo.RelationshipType_UpdateCategory", + "sha256": "405544e7215ac29b77c0d8bf5ed56e5426d52d83dba6709786c7ac76f7e7c62f" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterLookup_All", + "sha256": "4de37bbbbb9d9547e35c367feacbb03796daef9d6d1591ef7d27dd7b48b32c37" + }, + { + "kind": "module_sha256", + "name": "dbo.Relationship_ListInitialByCharacter", + "sha256": "1b5e9be919563f1c89356b751344f53777036451d38387f7b254a06f46377fe1" + }, + { + "kind": "module_sha256", + "name": "dbo.Relationship_ListByCharacter", + "sha256": "7b349793b38c8d9c614fbcaf5ddf3af7d4c7da532a3856fdc1b8705ed45b30ef" + }, + { + "kind": "module_sha256", + "name": "dbo.Relationship_ListByProject", + "sha256": "8337781e493dc6f6ce7cbf06821fbbfdcbfad18318943764646db84331edaba4" + }, + { + "kind": "module_sha256", + "name": "dbo.RelationshipEvent_ListByCharacter", + "sha256": "7c5c42c8012f4075b822ced5891eb2c364bc059d2e0d92663ed0cd992a016510" + }, + { + "kind": "module_sha256", + "name": "dbo.RelationshipEvent_ListByScene", + "sha256": "08a91ecf8970b702646b13a07a10d83f4e4110f4dded40d237d325def6a527ae" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryBible_RelationshipSummaries", + "sha256": "5e4e1fbd0e65b6990f486d5b4689411238a983550079f85025d560c85e45c8ff" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "033_Phase2D_RelationshipMap", + "file": "033_Phase2D_RelationshipMap.sql", + "sha256": "7a622237aaa6e836a9658847bfebefc7c3dde4bfb8d3799027dfabb1286c71b2", + "requires": [ + "032_Phase2C_RelationshipCategories" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.RelationshipMap_GetByProject", + "sha256": "8ac0363598cc309877afa299dc9e0eac79c362c43979023da4e545af5e2896e2" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "034_ProjectBackupExport", + "file": "034_ProjectBackupExport.sql", + "sha256": "773a7092046226da9378486004be67c4ef1086de77e14900b78b67a4e1697650", + "requires": [ + "033_Phase2D_RelationshipMap" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.ProjectBackup_Export", + "sha256": "a8c0354a27613b7b0469fd28d10ff48e181a33d01af428cfedcedb9a49dca640" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "035_ProjectRestorePoints", + "file": "035_ProjectRestorePoints.sql", + "sha256": "a18641ca9943c6eea75da71d9c696058b9a346f40038832a7f2a3b103a6b83bb", + "requires": [ + "034_ProjectBackupExport" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.ProjectRestorePoints", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectRestorePoint_List", + "sha256": "ef391762595553852f899799ef8fc0255e41fc6ab51b57152302b90dba1435aa" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectRestorePoint_Get", + "sha256": "1ebb3b1d16b8afad5ab1d077217f47eb68b75d70a79cb21ea0a2669a0ad9ce5f" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectRestorePoint_Create", + "sha256": "33e22d9022ee8b0573f8dcc114cff25b9e5605d6680743ced251ee2c0dd10c5a" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectRestorePoint_Count", + "sha256": "74d3c96260ccb231cbd109c8b60ea9496d80fd42847ab587ce44190de36da8aa" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectRestorePoint_Delete", + "sha256": "362a5c4f9aa2597deba942b746488a47cc26de53fe3caefe3527668dd88d059d" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "036_ProjectRestoreApply", + "file": "036_ProjectRestoreApply.sql", + "sha256": "181e80a7588cf84961a08ed692c34fdfda80a0ecee4d81783f7b75cbd8bf8d13", + "requires": [ + "035_ProjectRestorePoints" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.ProjectRestoreHistory", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectRestore_InsertJsonTable", + "sha256": "1dc7cab77c6b0527537a108b5818c719e7423eef2608b310070f89a694aff5ae" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectRestore_ApplyFromJson", + "sha256": "4cfa442375bd0db065f712c956466e5d5b1cc1406f6e9bee188e143b21045a5f" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectBackup_GetIdentityMaxValues", + "sha256": "4cccc98092f559253bf26b200ab88fe0024816c16d556acaf1ca8b8d36898b06" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectBackup_GetRelationshipImportLookups", + "sha256": "7bdec140920c32a5da1560913a4266798cfa7ddcb64a32c023275efd84ec8f2d" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectBackup_RelationshipImportDiagnostics", + "sha256": "befa62ffd60a3ec60063dfbac0cefb371efd2aaa0c39478de3416cae2e8f7a57" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "037_Phase4A_BespokeAuthFoundation", + "file": "037_Phase4A_BespokeAuthFoundation.sql", + "sha256": "1ad9b1f10a86565d35cc26847cddfb05d675c2e1c310c04a07dff73ad679339f", + "requires": [ + "036_ProjectRestoreApply" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.AppUser", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.UserEmailVerificationToken", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.UserPasswordResetToken", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.UserTwoFactor", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.UserLoginAudit", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.User_GetByEmail", + "sha256": "56eb65c1add104ac7d0362fc02f03c58971e77d28b842078914d0e09afb4c46a" + }, + { + "kind": "module_sha256", + "name": "dbo.User_GetById", + "sha256": "f92444c99a0ac1b721b05ae2de383bb72c8e86222a8066971faec19c10100047" + }, + { + "kind": "module_sha256", + "name": "dbo.User_Create", + "sha256": "b413d32046520572dd53d04c52a70f14380f53be9306f99e148772389dedde68" + }, + { + "kind": "module_sha256", + "name": "dbo.User_UpdateLoginSuccess", + "sha256": "0f70a3be60745abd5ea86895e836e01b11e3d266ccca931753fb08c91bff52ad" + }, + { + "kind": "module_sha256", + "name": "dbo.User_UpdateFailedLogin", + "sha256": "b19fbe9229bf45b714741e4b16f0275f1de8035181192a0a0ad98a128cfefeab" + }, + { + "kind": "module_sha256", + "name": "dbo.User_CreateEmailVerificationToken", + "sha256": "0724531c7cb4730cf451e07963b0c7884049e280c3098f0316d2ed189ca2cd8e" + }, + { + "kind": "module_sha256", + "name": "dbo.User_GetEmailVerificationToken", + "sha256": "cbeaaecddb6e5d0e01478a4b010d5a9c9112d92c75e3f27cd56eaca66958efea" + }, + { + "kind": "module_sha256", + "name": "dbo.User_ConfirmEmail", + "sha256": "325b84b5e3790a6873fad98571a4f86bdc1304eda60754748d464f1c410c2eec" + }, + { + "kind": "module_sha256", + "name": "dbo.User_CreatePasswordResetToken", + "sha256": "bc97f474b6d0f666f711d2126249a10f4928618802e79998c6a0a0d259eaf71b" + }, + { + "kind": "module_sha256", + "name": "dbo.User_GetPasswordResetToken", + "sha256": "b9b5b6a66a35c145b9430dc6bb3540ab9d31b6d6e43e1bc7a627d40faa5d3562" + }, + { + "kind": "module_sha256", + "name": "dbo.User_ResetPassword", + "sha256": "2be7ad8d825d89f411db663f08de8a68bf3373ea1ff473ffeed91c7f37b6a822" + }, + { + "kind": "module_sha256", + "name": "dbo.User_EnableTwoFactor", + "sha256": "07f6bd62891352499bbfe7939df447b2287444b5f8a80a09bb093c798dbdbdf8" + }, + { + "kind": "module_sha256", + "name": "dbo.User_DisableTwoFactor", + "sha256": "26d552c06d5723b1ef5fb7c467ac5f6e0d848b2137cb9eac4d5a1ab2e50b9b51" + }, + { + "kind": "module_sha256", + "name": "dbo.User_GetTwoFactor", + "sha256": "994c1fb1c86d8bd1440e104336106333fe0d78944a68030582d0e4fb262cd320" + }, + { + "kind": "module_sha256", + "name": "dbo.User_SaveTwoFactor", + "sha256": "ab8cca21c8f72afe790c7d0a6e1da90dea4bfd9890d9bcf9f0cf53e1a54bb1fc" + }, + { + "kind": "module_sha256", + "name": "dbo.User_InsertLoginAudit", + "sha256": "e24944ebb26423dd5da26509e3838c02bbe4cb7b3ec854f21d2f4b1c2480e1be" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "038_Phase4B_RegisterLoginLogout", + "file": "038_Phase4B_RegisterLoginLogout.sql", + "sha256": "268024caf1fdd8933de6bf63a10be3f26a03a9e5c19624c128809248d8bbaf72", + "requires": [ + "037_Phase4A_BespokeAuthFoundation" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.User_Create", + "sha256": "b413d32046520572dd53d04c52a70f14380f53be9306f99e148772389dedde68" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "039_Phase4D_EmailQueue", + "file": "039_Phase4D_EmailQueue.sql", + "sha256": "c34e06dbc6e2677e7acfb1ee85f1da03c01c4018e99288a78a450e00d3ffa4ff", + "requires": [ + "038_Phase4B_RegisterLoginLogout" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.EmailQueue", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.EmailQueue_Create", + "sha256": "1568e2991e7882398bdcd24c953f3ec660911988ee9c7237170c97a284742e3d" + }, + { + "kind": "module_sha256", + "name": "dbo.EmailQueue_DequeueBatch", + "sha256": "1e0b5517ed4a4790eacc9386c6929cbb92e2157d1ddf0ea184fbf4c867b85043" + }, + { + "kind": "module_sha256", + "name": "dbo.EmailQueue_MarkSending", + "sha256": "856e7121b7694527a1c33257b8457b914a0cc78309d7e574e76162408852994b" + }, + { + "kind": "module_sha256", + "name": "dbo.EmailQueue_MarkSent", + "sha256": "074b2ebe138c693f13d0595db06ea9db1e3e409b44aeed44f429f3342ff6313b" + }, + { + "kind": "module_sha256", + "name": "dbo.EmailQueue_MarkFailed", + "sha256": "3cc2f6fd904c64ace3e42a0d50b4ca726e754073a6471121f74664a34e59a97e" + }, + { + "kind": "module_sha256", + "name": "dbo.EmailQueue_ResetStuckSending", + "sha256": "1e28e463a298a003610bd4f3192cb68410f4491aa38da5c1cce954976a7bd60b" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "040_Phase4E_TwoFactorAuthentication", + "file": "040_Phase4E_TwoFactorAuthentication.sql", + "sha256": "019d0ea6dface91bc333c7cdcf3c554360fb05122d98741b2c42f1eb6cd6f7cb", + "requires": [ + "039_Phase4D_EmailQueue" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.UserTwoFactor", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.UserTwoFactor_Get", + "sha256": "b19099787da45299bed5bc03e0f9242279e563b524e73871ebf7d9dbe8a008b7" + }, + { + "kind": "module_sha256", + "name": "dbo.UserTwoFactor_Save", + "sha256": "d5c47d6c77db62fbd685a2fffce7ca0ae09fcdd1cf50650b436cb0fa83570119" + }, + { + "kind": "module_sha256", + "name": "dbo.UserTwoFactor_Enable", + "sha256": "58e5a27bd27397c7bac2a2be112506a108b49ae9244c31864b5d4c8a20b49074" + }, + { + "kind": "module_sha256", + "name": "dbo.UserTwoFactor_Disable", + "sha256": "47aa62fd1efc2d12a7f80a3e62b6568977b2b47076334b5e3fbcb46dafab88c1" + }, + { + "kind": "module_sha256", + "name": "dbo.UserTwoFactor_SaveRecoveryCodes", + "sha256": "ad59f662f505ad67156e5bbb6729353dc48d73ab317e8b4c12bcf1af7f2be576" + }, + { + "kind": "module_sha256", + "name": "dbo.UserTwoFactor_GetRecoveryCodes", + "sha256": "ecd0dca42af10af9cb51ca63df98266c2e55adf2658ae5eee403d3057031eb06" + }, + { + "kind": "module_sha256", + "name": "dbo.UserTwoFactor_UpdateLastUsedTimeStep", + "sha256": "4ec46a5fb3489b9a797d33e391851568a9f5cc2cf90a2c4b479f8453a34520ce" + }, + { + "kind": "module_sha256", + "name": "dbo.User_GetTwoFactor", + "sha256": "994c1fb1c86d8bd1440e104336106333fe0d78944a68030582d0e4fb262cd320" + }, + { + "kind": "module_sha256", + "name": "dbo.User_SaveTwoFactor", + "sha256": "ab8cca21c8f72afe790c7d0a6e1da90dea4bfd9890d9bcf9f0cf53e1a54bb1fc" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "041_Phase4F_SecurityHardening", + "file": "041_Phase4F_SecurityHardening.sql", + "sha256": "ab84c03374ac49796187e2069597ee8e34e2d6fed8b9d4606559b012f4d1a470", + "requires": [ + "040_Phase4E_TwoFactorAuthentication" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.AppUser", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.UserLoginAudit", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.User_GetByEmail", + "sha256": "56eb65c1add104ac7d0362fc02f03c58971e77d28b842078914d0e09afb4c46a" + }, + { + "kind": "module_sha256", + "name": "dbo.User_GetById", + "sha256": "f92444c99a0ac1b721b05ae2de383bb72c8e86222a8066971faec19c10100047" + }, + { + "kind": "module_sha256", + "name": "dbo.User_UpdateLoginSuccess", + "sha256": "0f70a3be60745abd5ea86895e836e01b11e3d266ccca931753fb08c91bff52ad" + }, + { + "kind": "module_sha256", + "name": "dbo.User_UpdateFailedLogin", + "sha256": "b19fbe9229bf45b714741e4b16f0275f1de8035181192a0a0ad98a128cfefeab" + }, + { + "kind": "module_sha256", + "name": "dbo.User_ChangePassword", + "sha256": "c72b98ae4ee6ac45e7fcee79703c24d5b05fdd6619762e3d4fd1d57a639b7a57" + }, + { + "kind": "module_sha256", + "name": "dbo.User_ResetPassword", + "sha256": "2be7ad8d825d89f411db663f08de8a68bf3373ea1ff473ffeed91c7f37b6a822" + }, + { + "kind": "module_sha256", + "name": "dbo.UserTwoFactor_Enable", + "sha256": "58e5a27bd27397c7bac2a2be112506a108b49ae9244c31864b5d4c8a20b49074" + }, + { + "kind": "module_sha256", + "name": "dbo.UserTwoFactor_Disable", + "sha256": "47aa62fd1efc2d12a7f80a3e62b6568977b2b47076334b5e3fbcb46dafab88c1" + }, + { + "kind": "module_sha256", + "name": "dbo.UserTwoFactor_SaveRecoveryCodes", + "sha256": "ad59f662f505ad67156e5bbb6729353dc48d73ab317e8b4c12bcf1af7f2be576" + }, + { + "kind": "module_sha256", + "name": "dbo.User_InsertLoginAudit", + "sha256": "e24944ebb26423dd5da26509e3838c02bbe4cb7b3ec854f21d2f4b1c2480e1be" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "042_Phase5A_ProjectUserAccess", + "file": "042_Phase5A_ProjectUserAccess.sql", + "sha256": "aae99b3c18a06f9ed32e32b8e50d66a31f0fd86b507b7c7e740b7b760790484a", + "requires": [ + "041_Phase4F_SecurityHardening" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.ProjectUserAccess", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectAccess_EnsureOwner", + "sha256": "e8f59f5551fdc9e94209dfa2c23d981d33eb37d13313743d6e35f0a497848f59" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectAccess_UserCanAccess", + "sha256": "17ec6054675ae434d10c9cc8e0d3feb7649514ac48bc5f4da77c90293ec1644d" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectAccess_UserCanOwn", + "sha256": "fa9ab8d481931f98785aa40c58dce602578a27b19fe96c895ce77a86449ebeb4" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectAccess_GetProjectIDForEntity", + "sha256": "9cc19c2b306b97eb51bd72bbddcc7987bc86bd1d40220acdf6bffe12f6ae6410" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectAccess_UserCanAccessEntity", + "sha256": "f4546c4fc91296aa5f6454e8e1360f6221ca07dead6c8f44a0a9e85798590644" + }, + { + "kind": "module_sha256", + "name": "dbo.Project_ListForUser", + "sha256": "569e25d327da190b839f5dbedc2897d70dffe47be13b97df84cf295b349294c0" + }, + { + "kind": "module_sha256", + "name": "dbo.Project_GetForUser", + "sha256": "109cd53254b2230ab57002bbf1229bd12248312367f443050105a422cd2607d2" + }, + { + "kind": "module_sha256", + "name": "dbo.Project_Save", + "sha256": "2796d2571689cada0262a4f773a8dd182b8e1fcf2611d4dfafe4acac3ad5aa63" + }, + { + "kind": "module_sha256", + "name": "dbo.Project_ArchiveForUser", + "sha256": "2ae54a426f716ecc167d35ded8e56b12caf774978a16097a70e9ff72bdeb361e" + }, + { + "kind": "module_sha256", + "name": "dbo.Archive_ListForUser", + "sha256": "14fe39d7b0df08aa6b48a4d0b3beb2abd9da0f1b27985d563b8a5f0d87db5b7c" + }, + { + "kind": "module_sha256", + "name": "dbo.Archive_ProjectFilterListForUser", + "sha256": "4e82b3d220887dc800f0c4cf436a4e46f28b4b24e8076f82c3d38f152eb64508" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "043_Phase5B_SubscriptionInfrastructure", + "file": "043_Phase5B_SubscriptionInfrastructure.sql", + "sha256": "1ef179851128b45bf8a543e094b88566d9390369c18a3f9e21ec8154ad7ae292", + "requires": [ + "042_Phase5A_ProjectUserAccess" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.SubscriptionLevel", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.UserSubscription", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.SubscriptionLevel_ListActive", + "sha256": "9fddca13eb37b1cb85836b315458701f31e8fbd90ba9c440fab72e9ad2e9470e" + }, + { + "kind": "module_sha256", + "name": "dbo.SubscriptionLevel_Get", + "sha256": "f52abea88b529971aa6bdba8ef6e1af860afa030b9ec0f4c5912444ab23eb394" + }, + { + "kind": "module_sha256", + "name": "dbo.UserSubscription_GetCurrent", + "sha256": "c0305d9bf0b8ab606b530a39625eabcd156674b49590262f2db1020b1c4a9fd8" + }, + { + "kind": "module_sha256", + "name": "dbo.UserSubscription_AssignDefaultDraftDesk", + "sha256": "7d23c840d48a398589edabe07421203ff9212eebb80bb65a0ad44b92ab2c0889" + }, + { + "kind": "module_sha256", + "name": "dbo.User_Create", + "sha256": "b413d32046520572dd53d04c52a70f14380f53be9306f99e148772389dedde68" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "044_Phase5C_SubscriptionLimitUsage", + "file": "044_Phase5C_SubscriptionLimitUsage.sql", + "sha256": "abf739ac74a38e48d03082d866c5a1fcfb313702639e840af00882e22e05bf51", + "requires": [ + "043_Phase5B_SubscriptionInfrastructure" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.SubscriptionUsage_BookCountForOwner", + "sha256": "5311a55c88cbf88e0872908495c6188edf6cc3abbccac5604de827ddbd6f2b6c" + }, + { + "kind": "module_sha256", + "name": "dbo.SubscriptionUsage_ChapterCountForBook", + "sha256": "2ffcad1aa289c055f53806dc7f9165166e771ab70948bad37e3c99f9c7b17802" + }, + { + "kind": "module_sha256", + "name": "dbo.SubscriptionUsage_SceneCountForBook", + "sha256": "eed95a34439909bedb2765bc5bee61369fb98213f6eb41b4e33db5989695e3c0" + }, + { + "kind": "module_sha256", + "name": "dbo.SubscriptionUsage_CharacterCountForProject", + "sha256": "3cd9948c1e391bbf69f99991fbfef05733b373898b4c2c559513bb8a9a1c9a66" + }, + { + "kind": "module_sha256", + "name": "dbo.SubscriptionUsage_CollaboratorCountForOwner", + "sha256": "6708cffaf3de4cbcbf31e622ed9fce3b0594dfa03bcd3d488bf0329b983799c1" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "045_Phase5D_CollaborationFoundation", + "file": "045_Phase5D_CollaborationFoundation.sql", + "sha256": "fa30bd1a506b497ff277e021ee0002bdfe23d6561e8d928d62b81f7833ed1692", + "requires": [ + "044_Phase5C_SubscriptionLimitUsage" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.ProjectInvitation", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.Project_ListForUser", + "sha256": "569e25d327da190b839f5dbedc2897d70dffe47be13b97df84cf295b349294c0" + }, + { + "kind": "module_sha256", + "name": "dbo.Project_GetForUser", + "sha256": "109cd53254b2230ab57002bbf1229bd12248312367f443050105a422cd2607d2" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectCollaboration_GetOwner", + "sha256": "3065460f2562146e4203c41d71a85184b9d079c33228e334bf681907112a3a99" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectCollaboration_ListCollaborators", + "sha256": "8bc3cd067f5a1c25bcd06d5e02dd2d9bacc405e8fb2a41c3095b722efa8faee8" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectCollaboration_ListPendingInvitations", + "sha256": "99d1856fac05e61885b55f2ab12a56e629f8b76ca820eb7f84059bed118e27e7" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectCollaboration_AddCollaborator", + "sha256": "eddd2fe30a6257681af82442bc5bbe16c30f14987ae3ea4e6b3c51be825736a7" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectCollaboration_RemoveCollaborator", + "sha256": "0b26d9f6e45b892540997ec36973a320bd8a05c97b12e29fd940abe29086ca5d" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectCollaboration_CreatePendingInvitation", + "sha256": "7b0d1c39442704bf491f7cd5edff565956edb4b2b796cba85a3216dd2c9842ce" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectCollaboration_CollaboratorCountsForOwner", + "sha256": "369baeb7795cdbd0b4b7f810078284888d4522ceac3b5d1cf464a0fbb37a50d6" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "046_Phase5E_AuditActivity", + "file": "046_Phase5E_AuditActivity.sql", + "sha256": "c6dc0d3532ade886c32b8ed96ee76e5b07c5baacceec711e063cba3cef233797", + "requires": [ + "045_Phase5D_CollaborationFoundation" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.ProjectActivity", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectActivity_Create", + "sha256": "e85ddd6420b656b265214f326e2ddf85be26bc38f5ec4a9c87204b69c6808c1d" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectAudit_Record", + "sha256": "689ac82b9e6a3a8b996ae06df21dd54e1ef7da0ade09b51dab77483381949cea" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectActivity_ListForProject", + "sha256": "574096b4d577bdbced0a44cc07b732498c623615e2377de05ee1b21ead60fe89" + }, + { + "kind": "module_sha256", + "name": "dbo.Relationship_Get", + "sha256": "a088c263078f4be950cac70a76dce4c4c725ace86b6debb53c89b425cf5812eb" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "047_Phase5F_StorageManagement", + "file": "047_Phase5F_StorageManagement.sql", + "sha256": "39b06293310625fdfa688b809982f8d97732baa8f4a870d51850ce53a7470795", + "requires": [ + "046_Phase5E_AuditActivity" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.UserFile", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.Project_GetOwnerUserID", + "sha256": "0230676c33a5de2dde8a9e9db1915b5608bb0b82cfe20a658f4a1d2fd2665162" + }, + { + "kind": "module_sha256", + "name": "dbo.UserFile_Create", + "sha256": "76c8aab882c3176c4ec918e3ea9e6e23841ef0b34971704169aca4713ef195ba" + }, + { + "kind": "module_sha256", + "name": "dbo.UserFile_MarkDeletedByStoragePath", + "sha256": "0fb856c3d2976f21f97caa3ce84f1eadccdf1f1bf89d4395622fd4bbb3d66161" + }, + { + "kind": "module_sha256", + "name": "dbo.UserFile_GetStorageUsageForOwner", + "sha256": "a17fad649dd1bac125497e103466866cd2ab4b90ca70127c2de9b9ee76107045" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "048_Phase5G_ProjectExportArchiving", + "file": "048_Phase5G_ProjectExportArchiving.sql", + "sha256": "ec2cdc3db11dbb6925b671d41fb1fc982a3055365bb891fc8d871b6826a18d58", + "requires": [ + "047_Phase5F_StorageManagement" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.ProjectActivity", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.Project_ListActiveForUser", + "sha256": "e24408751a0ee9cfb8073cb1205d0a58fce49309be8044b59696bf8c74a03fdf" + }, + { + "kind": "module_sha256", + "name": "dbo.Project_ListArchivedForUser", + "sha256": "377edbbce5953b4848286385bcff8b4caa0acd6e6a8b2abd35a0747ceb82c861" + }, + { + "kind": "module_sha256", + "name": "dbo.Project_GetArchivedForOwner", + "sha256": "35a1384e03db7216221c8656d63c5bdf7d863b5324f015606235048cf3b4b294" + }, + { + "kind": "module_sha256", + "name": "dbo.Project_ArchiveForOwner", + "sha256": "5053f1d2fbae1681f66aedd1879ff3eff93bcc9193b7019670328c9cb7c3cb1d" + }, + { + "kind": "module_sha256", + "name": "dbo.Project_RestoreForOwner", + "sha256": "f5da3b23a79cbaf6ee90fdae0a07a6d66f0d600437a1dcce65f927746e91b53c" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectBackup_Export", + "sha256": "a8c0354a27613b7b0469fd28d10ff48e181a33d01af428cfedcedb9a49dca640" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "049_Phase5H_SubscriptionManagementUI", + "file": "049_Phase5H_SubscriptionManagementUI.sql", + "sha256": "e78ffda583553f7a41f45914292c9e9d74827a768bb9cb079d9866940453fc07", + "requires": [ + "048_Phase5G_ProjectExportArchiving" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.SubscriptionUsage_BookCountForOwner", + "sha256": "5311a55c88cbf88e0872908495c6188edf6cc3abbccac5604de827ddbd6f2b6c" + }, + { + "kind": "module_sha256", + "name": "dbo.SubscriptionUsage_CollaboratorCountForOwner", + "sha256": "6708cffaf3de4cbcbf31e622ed9fce3b0594dfa03bcd3d488bf0329b983799c1" + }, + { + "kind": "module_sha256", + "name": "dbo.SubscriptionUsage_GetSummaryForOwner", + "sha256": "6719c593aeb58e28399eb8836c3b16524ae858410e65f1bc846f4684049772ad" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "050_Phase5I_StripePaymentIntegration", + "file": "050_Phase5I_StripePaymentIntegration.sql", + "sha256": "62227fbdadd67780620ef335b62ffda5fac2da38a2dbeb90443edc871f39f3c1", + "requires": [ + "049_Phase5H_SubscriptionManagementUI" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.SubscriptionLevel", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.UserSubscription", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StripeWebhookEvent", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.SubscriptionLevel_ListActive", + "sha256": "9fddca13eb37b1cb85836b315458701f31e8fbd90ba9c440fab72e9ad2e9470e" + }, + { + "kind": "module_sha256", + "name": "dbo.SubscriptionLevel_Get", + "sha256": "f52abea88b529971aa6bdba8ef6e1af860afa030b9ec0f4c5912444ab23eb394" + }, + { + "kind": "module_sha256", + "name": "dbo.SubscriptionLevel_GetByStripePrice", + "sha256": "683c888ca73a833f9d4f6ddb1f400dd1003608e92d4b62327ae500b912a1b19b" + }, + { + "kind": "module_sha256", + "name": "dbo.UserSubscription_GetCurrent", + "sha256": "c0305d9bf0b8ab606b530a39625eabcd156674b49590262f2db1020b1c4a9fd8" + }, + { + "kind": "module_sha256", + "name": "dbo.UserSubscription_SetStripeCustomer", + "sha256": "4f9546125349aec80addcc44e747fa1f3062ab163b361cfff95bff6ee8cdbc5f" + }, + { + "kind": "module_sha256", + "name": "dbo.StripeWebhookEvent_TryBegin", + "sha256": "adefacb7b7cbcf18b9316302c770318aabc064a0068941925d51a864517175d4" + }, + { + "kind": "module_sha256", + "name": "dbo.StripeWebhookEvent_Complete", + "sha256": "759130c6881fb232882578e688cf4d8febd37b64a6aacde04a05c7b759f458fa" + }, + { + "kind": "module_sha256", + "name": "dbo.UserSubscription_ApplyStripeState", + "sha256": "44195cf45284faf41b96afa3caac83b1c9b63752553a92ef3bb627792a7cd053" + }, + { + "kind": "module_sha256", + "name": "dbo.UserSubscription_DowngradeToDraftDesk", + "sha256": "2e2eea48636d4126257dc66a2a2591078e33383694e7e10e9abf2dc613d54239" + }, + { + "kind": "module_sha256", + "name": "dbo.UserSubscription_RecordPaymentFailure", + "sha256": "40119e1b81164049171982aca6a14bac3d3f656ff32e77aa9c90ebaa567b2886" + }, + { + "kind": "module_sha256", + "name": "dbo.UserSubscription_ClearPaymentFailure", + "sha256": "13284f406b270c6f1a6084b617b2f7949783273bb77c583e50c549432a01d18f" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "051_SubscriptionLevelDisplayPricing", + "file": "051_SubscriptionLevelDisplayPricing.sql", + "sha256": "6200e9df10ef6a2af490b1d36b8f65ea8f42d356d523b8faba38d0e6da00f5b9", + "requires": [ + "050_Phase5I_StripePaymentIntegration" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.SubscriptionLevel", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.SubscriptionLevel_ListActive", + "sha256": "9fddca13eb37b1cb85836b315458701f31e8fbd90ba9c440fab72e9ad2e9470e" + }, + { + "kind": "module_sha256", + "name": "dbo.SubscriptionLevel_Get", + "sha256": "f52abea88b529971aa6bdba8ef6e1af860afa030b9ec0f4c5912444ab23eb394" + }, + { + "kind": "module_sha256", + "name": "dbo.SubscriptionLevel_GetByStripePrice", + "sha256": "683c888ca73a833f9d4f6ddb1f400dd1003608e92d4b62327ae500b912a1b19b" + }, + { + "kind": "module_sha256", + "name": "dbo.UserSubscription_GetCurrent", + "sha256": "c0305d9bf0b8ab606b530a39625eabcd156674b49590262f2db1020b1c4a9fd8" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "052_RevisionStatusWriterWorkflow", + "file": "052_RevisionStatusWriterWorkflow.sql", + "sha256": "e1af0f6b998df4f3c1aa4e4550b9aeb20da5a35a06c56952ff7f030e64e26420", + "requires": [ + "051_SubscriptionLevelDisplayPricing" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.ChapterWorkflow_Summary", + "sha256": "393e49eab4e4bef7abf185896f983165e60ce4dd153584981095886a28dbc6f9" + }, + { + "kind": "module_sha256", + "name": "dbo.WriterDashboard_Scenes", + "sha256": "0d40abcfc070283836ba2c6d80b85f115e6ad0bb14dca488ab883f825c94087e" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "053_Phase6A_PlotLineDataModel", + "file": "053_Phase6A_PlotLineDataModel.sql", + "sha256": "8ac54173210e2a3d15403087c8fd96c9810e963b01e69f00272c116d2c769f71", + "requires": [ + "052_RevisionStatusWriterWorkflow" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.PlotImportance", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.PlotEventTypes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.PlotLines", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ThreadEvents", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.PlotEventTargetPlotLines", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.PlotLookup_All", + "sha256": "716379735a0b3df0d7228b663de48d9c37dabc5dfae197f54f0d2574e5f4a4cd" + }, + { + "kind": "module_sha256", + "name": "dbo.PlotLine_ListByProject", + "sha256": "7faf0e86751ce6b86fb43fe4d9a9a1f9cceb1d908fee4faed4d6ebca02471d1c" + }, + { + "kind": "module_sha256", + "name": "dbo.PlotLine_Get", + "sha256": "b4518d24bd42260a30bc78f43cd1bdbfc628b844d4073e407823bd785cb2176f" + }, + { + "kind": "module_sha256", + "name": "dbo.PlotLine_Save", + "sha256": "9f88b7f4f02e6da08e246c3aa8eab41e890034219ff9254d49376f5e26e3f42c" + }, + { + "kind": "module_sha256", + "name": "dbo.ThreadEvent_ListByScene", + "sha256": "9550d82718b2762c9919513976c449139569378a0e08716e82c328aab6f10aac" + }, + { + "kind": "module_sha256", + "name": "dbo.ThreadEvent_ListByPlotThread", + "sha256": "a4bca8d654c7d4d5065223882d7d98d7ee32c06bcf9b39c07114c1732fa9f1dd" + }, + { + "kind": "module_sha256", + "name": "dbo.ThreadEvent_Save", + "sha256": "cfc517f0d6253dec1bb588f1e77fcc21b2443000cb9e2dc9d8858a47d89f333d" + }, + { + "kind": "module_sha256", + "name": "dbo.Timeline_GetByProject", + "sha256": "c5cd747a8acb7e24f01056acc0ab3e2fe381839c9763b6bd3d99fda4b036539b" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectBackup_Export", + "sha256": "a8c0354a27613b7b0469fd28d10ff48e181a33d01af428cfedcedb9a49dca640" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "054_ProjectHardDeletion", + "file": "054_ProjectHardDeletion.sql", + "sha256": "ff59037afb9b8667b4587671bbe5ee57425aaa6bac1d72ffb5ecd11c26f7b671", + "requires": [ + "053_Phase6A_PlotLineDataModel" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.ProjectHardDelete_ListFilePathsForOwner", + "sha256": "d3ddf1f80b93d4b26f71e31ee8549f58bf915619555ef50b1c3d12e7b5c96c5e" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectHardDelete_ForOwner", + "sha256": "be2b265c224dbe670b843dd3f8dadf574a0f50fee9ae9259b4a21f5a7328d951" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "055_AccountHardDeletion", + "file": "055_AccountHardDeletion.sql", + "sha256": "f7a21b9d113ba8eed732468cd6f83e344e5815fe7f56cbe1015c46972d6aac5b", + "requires": [ + "054_ProjectHardDeletion" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.Project_ListOwnedForAccountDeletion", + "sha256": "c3fc5b29b3644a0345e5102cfaf9e251084d9a84813c7ecde128bbce17c9bc19" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectHardDelete_ListFilePathsForAccountDeletion", + "sha256": "129fb06319a037128f362f22893310700f1e19e227555f82f7856a6c4627d820" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectHardDelete_ForAccountDeletion", + "sha256": "3ce44842db36533b051805a6e1a2aefe9633de6e05fb4d42cb2c8b80a4c9f55c" + }, + { + "kind": "module_sha256", + "name": "dbo.UserHardDelete_ListFilePaths", + "sha256": "4a3a418a94d49880c881f3f657b3cc2f00c6457836e986a8b7c64c2721d050d5" + }, + { + "kind": "module_sha256", + "name": "dbo.UserHardDelete_ForAccountDeletion", + "sha256": "b7547ef8205f4b9b99cd167a2e8daa16f4f12ccf05d4cbfbb3c54852ddd18f4c" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "056_Phase9B_WritingScheduleFoundation", + "file": "056_Phase9B_WritingScheduleFoundation.sql", + "sha256": "1e04d0b0dca5eeb981a9d436cbc255669abb3eec2270fe47cb1b7c6310354ff1", + "requires": [ + "055_AccountHardDeletion" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.WritingPlans", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WritingScheduleItems", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.GetWritingPlansByUser", + "sha256": "035c915fc76f97b87119636da9c9e08ff76afd0f1f8a56dec12410d80cb97abd" + }, + { + "kind": "module_sha256", + "name": "dbo.GetWritingPlanByID", + "sha256": "77cb78c8469e9c4ff7b824810b02075db3023733004586600f877fd6b8d74631" + }, + { + "kind": "module_sha256", + "name": "dbo.CreateWritingPlan", + "sha256": "818fdac399ab5c00e09d770c1baa8104b1342439ea78f267934e883174e28ab0" + }, + { + "kind": "module_sha256", + "name": "dbo.UpdateWritingPlan", + "sha256": "91d8d1eca8030e8ff7b2934c827619cd57dadb2cf7de3066709144e2b0cb9175" + }, + { + "kind": "module_sha256", + "name": "dbo.DeleteWritingPlan", + "sha256": "54269d8aa638b97f80a624c11439d26495930da95483e29628cd918bd513722b" + }, + { + "kind": "module_sha256", + "name": "dbo.SetWritingPlanActive", + "sha256": "58443f045bc9efa6177d0c07e4ea923fd02e946b2246a220c7965ec962b11d2a" + }, + { + "kind": "module_sha256", + "name": "dbo.GetScheduleItemsByPlan", + "sha256": "d368af80db4336d0ec5479318c03f35200de7414ffa13153f5a8ccb4e123fbce" + }, + { + "kind": "module_sha256", + "name": "dbo.GetScheduleItemsByDateRange", + "sha256": "c0a8475a7de0e9561863e1d1f0bb11e497ca26e688f9d330ed166f2f34e0bec2" + }, + { + "kind": "module_sha256", + "name": "dbo.CreateScheduleItem", + "sha256": "3c710dad9a895f5c45922b710da836f7ef96c9afb74216c0a9d9016dfe39086a" + }, + { + "kind": "module_sha256", + "name": "dbo.UpdateScheduleItem", + "sha256": "5cf2e33541cdb69c88a9042278c36689a15837d778e3d250a4a32679f102242f" + }, + { + "kind": "module_sha256", + "name": "dbo.DeleteScheduleItem", + "sha256": "81a4dadfe55e1cb7d21d65eedcbc235a108f8340ee133682efbfef284e9c2b53" + }, + { + "kind": "module_sha256", + "name": "dbo.UpdateScheduleItemStatus", + "sha256": "63858651dbd6f9201b1a365ee0e3e4dfbd7b312473094ecd8a46c408e67e32e9" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "057_Phase10A_WordCompanionApiFoundation", + "file": "057_Phase10A_WordCompanionApiFoundation.sql", + "sha256": "05de4fd881898a31286bae4f2f48bddc5b357e498461ea545ffb7ca6c2d61952", + "requires": [ + "056_Phase9B_WritingScheduleFoundation" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.WordCompanionSceneAssets", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WordCompanionSceneLocations", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Project_List", + "sha256": "56f0e95075ffee05dcefdc46e3c687c05c4043d4561b0cbc37505d1e534d2494" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Book_ListByProject", + "sha256": "b11d698b6b799faf77261f213176484cded9b7a40f0e63034e6e72cd4f5e47e5" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Book_Structure", + "sha256": "c6dc10480b2b55df03b5b05fed94955ddac20302eca5945247399c8260f006cb" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Scene_Resolve", + "sha256": "812e167a8999c594c0f5c5c2ebde5aa86d472079f7467835d2f254e53fab25b5" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Scene_Companion", + "sha256": "5767f723ba582fd6bd5c9394f51532173700ad359b0f1ee40d5441e022b8f405" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Scene_UpdateWordCount", + "sha256": "b3a365d107caf21266251b4ab607c0e63fe68f7d108b5d4cb091866b3d4a1907" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Scene_Sync", + "sha256": "7f1a84b99b3e4357ec9fc5e368aea71e8a932acbd31feb35edcc2ff448748ca6" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Manuscript_Sync", + "sha256": "8581da2eab1e1e927c3cdb076d485d0e2e8ee53432e6aad4ea92dfffece6b7e0" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_SceneLinks_Update", + "sha256": "09f2c42948067d3b8490643f34e81cc53ced1d4ccdd48c10b88e9ca53e9967c9" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "058_Phase10E2_WordCompanionResolveSceneMatching", + "file": "058_Phase10E2_WordCompanionResolveSceneMatching.sql", + "sha256": "1108d4c585c61014cb5474e0450188f4eabe7eff66173d868fc43c5e2b077b64", + "requires": [ + "057_Phase10A_WordCompanionApiFoundation" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Scene_Resolve", + "sha256": "812e167a8999c594c0f5c5c2ebde5aa86d472079f7467835d2f254e53fab25b5" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "059_Phase10F_WordCompanionSceneProgressSync", + "file": "059_Phase10F_WordCompanionSceneProgressSync.sql", + "sha256": "39c360bcfe8896e8219851db693c5bfb1c88faec0363a6f1809bbfe9f09eee3d", + "requires": [ + "058_Phase10E2_WordCompanionResolveSceneMatching" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Scene_UpdateWordCount", + "sha256": "b3a365d107caf21266251b4ab607c0e63fe68f7d108b5d4cb091866b3d4a1907" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "060_Phase10H1_WordCompanionSceneLinksEmptySelections", + "file": "060_Phase10H1_WordCompanionSceneLinksEmptySelections.sql", + "sha256": "0f67ae013e529a07f8b79c924a398db3bd562ec7f7c98608f58e72b8486981df", + "requires": [ + "059_Phase10F_WordCompanionSceneProgressSync" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_SceneLinks_Update", + "sha256": "09f2c42948067d3b8490643f34e81cc53ced1d4ccdd48c10b88e9ca53e9967c9" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "061_Phase10H2_WordCompanionSceneLinksRealSceneData", + "file": "061_Phase10H2_WordCompanionSceneLinksRealSceneData.sql", + "sha256": "05647479a91b4df36ee68a44110a15f3de929f56d408b09db5aa800777a6139f", + "requires": [ + "060_Phase10H1_WordCompanionSceneLinksEmptySelections" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Scene_Companion", + "sha256": "5767f723ba582fd6bd5c9394f51532173700ad359b0f1ee40d5441e022b8f405" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_SceneLinks_Update", + "sha256": "09f2c42948067d3b8490643f34e81cc53ced1d4ccdd48c10b88e9ca53e9967c9" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "062_Phase10J_WordCompanionSceneCreateLink", + "file": "062_Phase10J_WordCompanionSceneCreateLink.sql", + "sha256": "6cf2a7ee1d4ea291483c767abd83c5474b14f1cf460243ecc7f54dd4ec2b5eab", + "requires": [ + "061_Phase10H2_WordCompanionSceneLinksRealSceneData" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Scene_Create", + "sha256": "adbfd7dd17c0953e8e72e5f54d37e1d37d08b552a72f5569b1d71842e8c080fa" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "063_Phase10J_UnmatchedSceneChapterDiagnostics", + "file": "063_Phase10J_UnmatchedSceneChapterDiagnostics.sql", + "sha256": "e3f8beb8679c734de2626cb01c9f73817f96d311ce9da22fe4346b64da0efc04", + "requires": [ + "062_Phase10J_WordCompanionSceneCreateLink" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Scene_Resolve", + "sha256": "812e167a8999c594c0f5c5c2ebde5aa86d472079f7467835d2f254e53fab25b5" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "064_Phase10K_WordCompanionChapterCreateLink", + "file": "064_Phase10K_WordCompanionChapterCreateLink.sql", + "sha256": "38b0980a63a99d8dbdab7fd78e0c6cd43cfcb668f230804afc0fadcb09abab84", + "requires": [ + "063_Phase10J_UnmatchedSceneChapterDiagnostics" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Chapter_List", + "sha256": "744c5cdd8f56f2857f2e255f935e668d4710a4e6684ef8e616b2d019e52f54f0" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Chapter_Create", + "sha256": "a7ca57ec814d20ef60c05189120295da7ab0d9d0cacab7f67e085ffe31fee5d4" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "065_Phase12F_ContinuityWarningAcknowledgements", + "file": "065_Phase12F_ContinuityWarningAcknowledgements.sql", + "sha256": "ff1f80a5ff7a25cda01b1229b533f2d9eb9cfa82c28d18389db986fff05aa6cf", + "requires": [ + "064_Phase10K_WordCompanionChapterCreateLink" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.ContinuityWarningAcknowledgements", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.ContinuityWarningAcknowledgement_ListByProject", + "sha256": "92d9335fe4b2075b86659f044c48583cc4c85acd28966fa4783d99d7f0751963" + }, + { + "kind": "module_sha256", + "name": "dbo.ContinuityWarningAcknowledgement_Get", + "sha256": "7a67c8c74acff5c2aa0cee2dca2867767c04a206bbf806503d9bef2329dd1bf0" + }, + { + "kind": "module_sha256", + "name": "dbo.ContinuityWarningAcknowledgement_Save", + "sha256": "ff6d6a3d61206bc05c1a45b20b0504d7768f8ce3428cc8b8b44c196f9638d518" + }, + { + "kind": "module_sha256", + "name": "dbo.ContinuityWarningAcknowledgement_Delete", + "sha256": "e18d00d0ba0a919b6c3bbd5e789ec95f435318fd87dea717dfee1e61a08d82f5" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "066_Phase13A_BookMetadataBackend", + "file": "066_Phase13A_BookMetadataBackend.sql", + "sha256": "3198494820e956a992f702953edfd03d6b49d3ee17d1bdbd08917687b9871411", + "requires": [ + "065_Phase12F_ContinuityWarningAcknowledgements" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.Book_ListByProject", + "sha256": "86fde3df5d3d483bb7df5be416a27cee0f4e9df279262f3bd5264672cf536ede" + }, + { + "kind": "module_sha256", + "name": "dbo.Book_Get", + "sha256": "a51e34b8ee4066c7c518e1c78f4e74b7a2c9b5a34ec911e2dc6ae2cbfc11701b" + }, + { + "kind": "module_sha256", + "name": "dbo.Book_Save", + "sha256": "e89705c9502cf0450ce202e6bece8efe73095fff3ad43c19c007c5fb8e5372ef" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "067_Phase13B_BookCoverUpload", + "file": "067_Phase13B_BookCoverUpload.sql", + "sha256": "49f987d04afc050e86de8566d41d95438cacc87f27ec8a20992ae5a9861c0740", + "requires": [ + "066_Phase13A_BookMetadataBackend" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.Book_ListByProject", + "sha256": "86fde3df5d3d483bb7df5be416a27cee0f4e9df279262f3bd5264672cf536ede" + }, + { + "kind": "module_sha256", + "name": "dbo.Book_Get", + "sha256": "a51e34b8ee4066c7c518e1c78f4e74b7a2c9b5a34ec911e2dc6ae2cbfc11701b" + }, + { + "kind": "module_sha256", + "name": "dbo.Book_UpdateCover", + "sha256": "abc7248565b8fd7b8c243b538c15712cd4f902a1010154f94aa042a8bb872c2d" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "068_BookDisplayTitles", + "file": "068_BookDisplayTitles.sql", + "sha256": "6c5ee2251ffad69d94ae7e81de9074eae8152462cd4591526d3b2add91458343", + "requires": [ + "067_Phase13B_BookCoverUpload" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.NarrativeSceneOrder", + "sha256": "b9124958958b4079a1e5c17f5b8fbf91e996aba88253537381a23a88312426bf" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneOption_ListByProject", + "sha256": "eba3b5db1024a3fc1c84abd9870c2ee5aa02b9e0f710fcb455099e19fa4f0556" + }, + { + "kind": "module_sha256", + "name": "dbo.ChapterOption_ListByProject", + "sha256": "9792c34a053bc08cfc60ddbc444f22006b7b19ebbf44a09a46f09969037cc3dc" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneDependency_ListByScene", + "sha256": "fe48c19cc7783881cbd8cbe999c08c171d995729b5771dae266cd09879f66a80" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneDependency_ListByProject", + "sha256": "f0ad39494b7ee6e4a257090a0f41a5038b4cca6962f20b23d627d19207a50a5d" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneMovePreview_Get", + "sha256": "df4e729bf170bd726826b9d74b6d8fd21db253a526063a90c2d9d83018bda045" + }, + { + "kind": "module_sha256", + "name": "dbo.ContinuityWarning_List", + "sha256": "529162cd5e9f3ba826c16d2bdb120bfd6014575a7c7ecb7e5016fda32aed4949" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterTimeline_GetByProject", + "sha256": "08fa54377115534bd14cb5614662312bd8ae0820afca59305475e062f8195c05" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterAttributeEvent_ListByCharacter", + "sha256": "8087beb28bbeaa1b0fd4e625fa9f373f40d8ff94002033a27c9a6c032f071af5" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterKnowledge_ListByCharacter", + "sha256": "90180d70777780fc11c7d28423378d923cf075352cdeb62c12c8237267bb90a3" + }, + { + "kind": "module_sha256", + "name": "dbo.Relationship_ListInitialByCharacter", + "sha256": "1b5e9be919563f1c89356b751344f53777036451d38387f7b254a06f46377fe1" + }, + { + "kind": "module_sha256", + "name": "dbo.Relationship_ListByCharacter", + "sha256": "7b349793b38c8d9c614fbcaf5ddf3af7d4c7da532a3856fdc1b8705ed45b30ef" + }, + { + "kind": "module_sha256", + "name": "dbo.Relationship_ListByProject", + "sha256": "8337781e493dc6f6ce7cbf06821fbbfdcbfad18318943764646db84331edaba4" + }, + { + "kind": "module_sha256", + "name": "dbo.RelationshipEvent_ListByCharacter", + "sha256": "7c5c42c8012f4075b822ced5891eb2c364bc059d2e0d92663ed0cd992a016510" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetEvent_ListByAsset", + "sha256": "e8071957057fdad9c2938905e1e73233a6c87a46cc4eb2d625bb8017b8cd8d12" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetCustodyEvent_ListByAsset", + "sha256": "9dfd7eb70092ed0e82cb1e2c5b5e01be80ebe7c29b3fe1242fd193c2b5625932" + }, + { + "kind": "module_sha256", + "name": "dbo.WriterDashboard_Scenes", + "sha256": "0d40abcfc070283836ba2c6d80b85f115e6ad0bb14dca488ab883f825c94087e" + }, + { + "kind": "module_sha256", + "name": "dbo.Dynamics_CharacterArc", + "sha256": "100f5bc6468913b7e6dfd1d989714d9f1b157beb644ca52ff930f5aca9c91c67" + }, + { + "kind": "module_sha256", + "name": "dbo.Dynamics_RelationshipEvolution", + "sha256": "491aaaa314cdf272ff7eb294d2bad272f30d22e741f780d59f2ba4d8c4890956" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryBible_TimelineSummary", + "sha256": "29342c0e54343935d0f7cde90f32a7eb0cf9f8b0d2ec23a9c49e8527899c1d4e" + }, + { + "kind": "module_sha256", + "name": "dbo.Export_SceneBrief", + "sha256": "f73c1d0cb9ddeb40683d508f01f201e53a0edfa9f47f76a448328780627e5ddf" + }, + { + "kind": "module_sha256", + "name": "dbo.Export_ChapterBrief", + "sha256": "3ffae4882e6dc64b6609702061bc1f251a048748fd33428924932ee7f627d0dd" + }, + { + "kind": "module_sha256", + "name": "dbo.Export_CharacterReference", + "sha256": "751eb9165cc2a72615a169a39123e5e6e0f277afc74b143bac57757300cf06b6" + }, + { + "kind": "module_sha256", + "name": "dbo.Export_ResearchPack", + "sha256": "703d3310ef24503478f62b2798aef4cde1f7847d030e215fa01748644297eb40" + }, + { + "kind": "module_sha256", + "name": "dbo.Analytics_StoryHealth", + "sha256": "e0922838605895f627fd3928bdedb96f798fbfe807474bf865ffc7563a3b33c9" + }, + { + "kind": "module_sha256", + "name": "dbo.RelationshipMap_GetByProject", + "sha256": "8ac0363598cc309877afa299dc9e0eac79c362c43979023da4e545af5e2896e2" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "069_CharacterAttributeEventsByScene", + "file": "069_CharacterAttributeEventsByScene.sql", + "sha256": "be9b97618dbb52b2bd4da8db0c8b393626616a0be411848b5948baf6a1eda82f", + "requires": [ + "068_BookDisplayTitles" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.CharacterAttributeEvent_ListByScene", + "sha256": "24ac9fe07940caa6ff7cc36a6d061e3a5e7d034285e3ed00c28f47b375521fd9" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "070_TimelineDefaultSceneFocusedView", + "file": "070_TimelineDefaultSceneFocusedView.sql", + "sha256": "c00208551c864d682cd7ce7261afcfb6fbb83d75a93d76a5c7f803957e93a1ae", + "requires": [ + "069_CharacterAttributeEventsByScene" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.ProjectTimelineSettings", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectTimelineSettings_EnsureDefaults", + "sha256": "5c081f9f7c1d18da649deba14ca58ec8d2230d96548d877bf2ae8428b7225fb2" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "071_LocationFloorPlans", + "file": "071_LocationFloorPlans.sql", + "sha256": "6c9804d614ea0a407ac7c42113b91b60b4fb4b674a15a06e5c71a9675250ae83", + "requires": [ + "070_TimelineDefaultSceneFocusedView" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.FloorPlanBlocks", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.FloorPlanFloors", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.FloorPlans", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlan_ListByProject", + "sha256": "49e47f53ceed21f38b27631bc6c0f6aab2c889e65dd7d283c5c252dca1717c31" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlan_Get", + "sha256": "83c7bf98f7bed2bfc1e44c37d00c39341cd867f4392c1e2e88336c7cbd30af78" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlan_GetEditor", + "sha256": "965cb7fe83ba5220405b9eed40d42af517a07e8ab2157afcefaaf97c3c4bf63c" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlan_Save", + "sha256": "0c03c983acd7c0fd9e184f9dbbcac4c974d36e728539d582a6ad6e394bcc9132" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlan_Delete", + "sha256": "f234ee23c67940a1645263ea8ff180bc3b1cd49382455f826b057fd388c33ee2" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlanFloor_Get", + "sha256": "680d0b4570b6a2c2038fab47319554e22f7b68eebcb4443b6275c90003ed66d5" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlanFloor_Save", + "sha256": "1411817a8627cd9be523dad07bbdba71d6ab7d53607fbd188338e281af3e3ed8" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlanFloor_Delete", + "sha256": "a741f0332fd6e46564c26dcf30d9d1f70acfc9420bd398c97ec827c7ba8f3fbf" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlanBlock_Save", + "sha256": "c6861951e47c8e44c731d740836b8e99cd1f4f5a7508f672d062ae0366a6af94" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlanBlock_Delete", + "sha256": "4633ebb17ae2b3c8b543beb0eba0d099100c1de9e8a2d9bd854dc3f676e25905" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectAccess_UserCanAccessEntity", + "sha256": "f4546c4fc91296aa5f6454e8e1360f6221ca07dead6c8f44a0a9e85798590644" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "072_FloorPlanLocationLinks", + "file": "072_FloorPlanLocationLinks.sql", + "sha256": "c759b4e7b7a3ba7f75ab9e7d9e41ee1446b82ec85799a877a3dc067e12bc41cf", + "requires": [ + "071_LocationFloorPlans" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.FloorPlans", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.FloorPlanFloors", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlan_ListByProject", + "sha256": "49e47f53ceed21f38b27631bc6c0f6aab2c889e65dd7d283c5c252dca1717c31" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlan_Get", + "sha256": "83c7bf98f7bed2bfc1e44c37d00c39341cd867f4392c1e2e88336c7cbd30af78" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlan_GetEditor", + "sha256": "965cb7fe83ba5220405b9eed40d42af517a07e8ab2157afcefaaf97c3c4bf63c" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlan_Save", + "sha256": "0c03c983acd7c0fd9e184f9dbbcac4c974d36e728539d582a6ad6e394bcc9132" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlanFloor_Get", + "sha256": "680d0b4570b6a2c2038fab47319554e22f7b68eebcb4443b6275c90003ed66d5" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlanFloor_Save", + "sha256": "1411817a8627cd9be523dad07bbdba71d6ab7d53607fbd188338e281af3e3ed8" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "073_FloorPlanDeleteProcedureSettings", + "file": "073_FloorPlanDeleteProcedureSettings.sql", + "sha256": "f3ac4533be785d73524579502481183fc5c53030ee04a5a2cdd5c51e007b857e", + "requires": [ + "072_FloorPlanLocationLinks" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.FloorPlan_Delete", + "sha256": "f234ee23c67940a1645263ea8ff180bc3b1cd49382455f826b057fd388c33ee2" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlanFloor_Delete", + "sha256": "a741f0332fd6e46564c26dcf30d9d1f70acfc9420bd398c97ec827c7ba8f3fbf" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlanBlock_Delete", + "sha256": "4633ebb17ae2b3c8b543beb0eba0d099100c1de9e8a2d9bd854dc3f676e25905" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "074_FloorPlanFloorBackgroundImages", + "file": "074_FloorPlanFloorBackgroundImages.sql", + "sha256": "e375f2116cd44821dd805e2d4fae82966a152bd56db622cb1e51385fae866863", + "requires": [ + "073_FloorPlanDeleteProcedureSettings" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.FloorPlanFloors", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlan_GetEditor", + "sha256": "965cb7fe83ba5220405b9eed40d42af517a07e8ab2157afcefaaf97c3c4bf63c" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlanFloor_Get", + "sha256": "680d0b4570b6a2c2038fab47319554e22f7b68eebcb4443b6275c90003ed66d5" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlanFloor_Save", + "sha256": "1411817a8627cd9be523dad07bbdba71d6ab7d53607fbd188338e281af3e3ed8" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlanFloor_UpdateBackground", + "sha256": "bb89777b14b402674a188cb4ec3fb28ad6e30d849dbdcc620ba0726995b857a0" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "075_FloorPlanTransitions", + "file": "075_FloorPlanTransitions.sql", + "sha256": "073d88243cc03010bed302393cb3dbb0947374afbfc38f3b9eecea5a44cbaac4", + "requires": [ + "074_FloorPlanFloorBackgroundImages" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.FloorPlanTransitions", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlan_GetEditor", + "sha256": "965cb7fe83ba5220405b9eed40d42af517a07e8ab2157afcefaaf97c3c4bf63c" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlanTransition_Save", + "sha256": "0bf4ad48c070fc0dfa73342a39936a4c22bbaaef24e6159d0ed5ce2a808c9de0" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlanTransition_Delete", + "sha256": "56a258fd4a4894cc0759a1d6e337684365b744130f49cee32430898f60f9b53c" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "076_FloorPlanFloorLevels", + "file": "076_FloorPlanFloorLevels.sql", + "sha256": "a174233ac74f0831c49a1b209dfccc3bc06128921327a51881bd30dd8cd80e7b", + "requires": [ + "075_FloorPlanTransitions" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "077_FloorPlanStairTransitionPlacement", + "file": "077_FloorPlanStairTransitionPlacement.sql", + "sha256": "bb025aee94a0e497ba19b39d9d894c26368cbcaf651c06b1a1a925e51b912854", + "requires": [ + "076_FloorPlanFloorLevels" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.FloorPlanTransitions", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlan_GetEditor", + "sha256": "965cb7fe83ba5220405b9eed40d42af517a07e8ab2157afcefaaf97c3c4bf63c" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlanTransition_Save", + "sha256": "0bf4ad48c070fc0dfa73342a39936a4c22bbaaef24e6159d0ed5ce2a808c9de0" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "078_FloorPlanEditorPerformanceAndReciprocalStairs", + "file": "078_FloorPlanEditorPerformanceAndReciprocalStairs.sql", + "sha256": "9ffcc2ad088e17573504a6e754ae3e51bfc4ba1ab137817a9e441d4196373b73", + "requires": [ + "077_FloorPlanStairTransitionPlacement" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.FloorPlan_GetEditor", + "sha256": "965cb7fe83ba5220405b9eed40d42af517a07e8ab2157afcefaaf97c3c4bf63c" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlanBlock_ListByFloor", + "sha256": "43e2c62e7ec4d0ad2e6ba7ed0cbb641e3cd08c9d31d786152e5998cd6f3d5983" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlanBlock_Get", + "sha256": "5b09e3f972f5b3d2d671b4e70eb17a20956fb78a9d0d613320a481d42d2d4f1c" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "079_VisualIdentityCharacterAssetImages", + "file": "079_VisualIdentityCharacterAssetImages.sql", + "sha256": "0500784fd4f243217e480cefcb3847d1e993ead061cf93d2d2bfbde006f1ebf0", + "requires": [ + "078_FloorPlanEditorPerformanceAndReciprocalStairs" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Characters", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryAssets", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_ListByProject", + "sha256": "dface619a6e4547ac7003a4beb5798e85e917457b143fa5c802e400029f4b14b" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_Get", + "sha256": "7dd1cd990f714acdbf29b90c3be2474657354b0fafc2013631e564251ef1156b" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_Save", + "sha256": "a3f0dd48692bda0d4f7a728001d4fac1e931502b7c2e50a080ff1fa4600d342a" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_UpdateImage", + "sha256": "f976c3ea18cbd17a9422b20133fd4c8e46c32c807dd483e3985448388033b23d" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryAsset_ListByProject", + "sha256": "3470fcfca02d1ea6d77a04396fdfbfa0855fe3bd746f219ee1fb61c62f1a8084" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryAsset_Get", + "sha256": "dd3b9b26662831ba62338404eeaf95315a689ee0777356179fe8c334f9061569" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryAsset_Save", + "sha256": "cef147d5d8b7dbb79baf51a965ef3f8b36185f9527474b82181c2b02477eac34" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryAsset_UpdateImage", + "sha256": "8805ab226f6c2e4e9ab3ce37bf280caccdbc83c9dc0e14aa328e1ebe310b9411" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "080_SceneFloorPlanOccupancy", + "file": "080_SceneFloorPlanOccupancy.sql", + "sha256": "8aa530d64f39510eddbf3f2509d5e1bcc03a9c4970bb709ac9bc40bd1dddfb66", + "requires": [ + "079_VisualIdentityCharacterAssetImages" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Scenes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.SceneFloorPlanOccupancy", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_Save", + "sha256": "0fb556b707d9d6988afb381854e9d739a4f375dbe3a10db8c1d5b2530862b5fb" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_Get", + "sha256": "66d948905bb558ac557dddc6a6d58ae70790828a49988a52c40dc432229cbe08" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_FloorPlanLink_Save", + "sha256": "f77b5e58b6204314c68f68d0d3ed523013be2319119febc2652abf9bf94aafdc" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_ListByFloorPlan", + "sha256": "0cd022b70cee907eb7aafa453a6809dccf34584bf8dd3abd237c38f9319986ca" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlanFloor_ListByPlan", + "sha256": "f476bd511bcadbb30156823039bf5444f69490f686bc3936ee0f2d8994873663" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlanBlock_ListByPlan", + "sha256": "33ae0b4a6dbef3db9e6a16c94bbc4a1a0fe50962a74ede88f45355f87bb4afc2" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneFloorPlanOccupancy_ListByScene", + "sha256": "fa035836bf6cecc68eaac0c3284a0345ba6e33047b6d931edc909834528c1aeb" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneFloorPlanOccupancy_ListByFloorPlan", + "sha256": "46eed27868c443e10eb8bfbf0a32a38aaa2946830747b274ccc7b387afcd6b0a" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneFloorPlanOccupancy_Save", + "sha256": "051b228714ec202cbfa3735ace515ef0f3f07fe245f978f914adfc6d77084c95" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "081_FloorPlanFloorDescriptionAndOccupancyWarnings", + "file": "081_FloorPlanFloorDescriptionAndOccupancyWarnings.sql", + "sha256": "a4399ce0a1485360af90cac1a7911de5630ffb2fbb742b26c1cc70c261f942ca", + "requires": [ + "080_SceneFloorPlanOccupancy" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.FloorPlanFloors", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlan_GetEditor", + "sha256": "965cb7fe83ba5220405b9eed40d42af517a07e8ab2157afcefaaf97c3c4bf63c" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneFloorPlanParticipant_ListByFloorPlan", + "sha256": "7ebb8f0428b49afad7fd60dc1e537d61060449faac453f85961805257eb598fc" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlanFloor_Get", + "sha256": "680d0b4570b6a2c2038fab47319554e22f7b68eebcb4443b6275c90003ed66d5" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlanFloor_ListByPlan", + "sha256": "f476bd511bcadbb30156823039bf5444f69490f686bc3936ee0f2d8994873663" + }, + { + "kind": "module_sha256", + "name": "dbo.FloorPlanFloor_Save", + "sha256": "1411817a8627cd9be523dad07bbdba71d6ab7d53607fbd188338e281af3e3ed8" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "082_FloorPlanOccupancySceneOrdering", + "file": "082_FloorPlanOccupancySceneOrdering.sql", + "sha256": "65ceb716089a26bb716c0c5f7825b7dff74954fa39e7efe5c9129b1b3cbe44ae", + "requires": [ + "081_FloorPlanFloorDescriptionAndOccupancyWarnings" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.Scene_ListByFloorPlan", + "sha256": "0cd022b70cee907eb7aafa453a6809dccf34584bf8dd3abd237c38f9319986ca" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "083_FloorPlanEditorOccupancyIndexes", + "file": "083_FloorPlanEditorOccupancyIndexes.sql", + "sha256": "5aa9128eb202829dc5f0777cd9170b6a518c0db13da1270b26114efb4ce02ded", + "requires": [ + "082_FloorPlanOccupancySceneOrdering" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "084_ProjectBackupFloorPlansAndVisualIdentity", + "file": "084_ProjectBackupFloorPlansAndVisualIdentity.sql", + "sha256": "9a82600a8c8b114d12a060ea9268ee3172f020deb2bc1bd5fbd557ad7bf156a6", + "requires": [ + "083_FloorPlanEditorOccupancyIndexes" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.ProjectBackup_Export", + "sha256": "a8c0354a27613b7b0469fd28d10ff48e181a33d01af428cfedcedb9a49dca640" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectRestore_ApplyFromJson", + "sha256": "4cfa442375bd0db065f712c956466e5d5b1cc1406f6e9bee188e143b21045a5f" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectBackup_GetRelationshipImportLookups", + "sha256": "7bdec140920c32a5da1560913a4266798cfa7ddcb64a32c023275efd84ec8f2d" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "085_ProjectHardDeletionFloorPlansAndImages", + "file": "085_ProjectHardDeletionFloorPlansAndImages.sql", + "sha256": "80bf4a54e13b95a9a0b733d504e56ffd852d6e239943fd0755f70f252fa74b4f", + "requires": [ + "084_ProjectBackupFloorPlansAndVisualIdentity" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.ProjectHardDelete_ListFilePathsForOwner", + "sha256": "d3ddf1f80b93d4b26f71e31ee8549f58bf915619555ef50b1c3d12e7b5c96c5e" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectHardDelete_ForOwner", + "sha256": "be2b265c224dbe670b843dd3f8dadf574a0f50fee9ae9259b4a21f5a7328d951" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "086_Phase14A_CharacterGalleriesAvatars", + "file": "086_Phase14A_CharacterGalleriesAvatars.sql", + "sha256": "18e520becb1ab9dca40b4a4f945a71ef557dc3bf3a83623ca127779c27061fc8", + "requires": [ + "085_ProjectHardDeletionFloorPlansAndImages" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Characters", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.CharacterImages", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_ListByProject", + "sha256": "dface619a6e4547ac7003a4beb5798e85e917457b143fa5c802e400029f4b14b" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_Get", + "sha256": "7dd1cd990f714acdbf29b90c3be2474657354b0fafc2013631e564251ef1156b" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_Save", + "sha256": "a3f0dd48692bda0d4f7a728001d4fac1e931502b7c2e50a080ff1fa4600d342a" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_UpdateImage", + "sha256": "f976c3ea18cbd17a9422b20133fd4c8e46c32c807dd483e3985448388033b23d" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_UpdateAvatar", + "sha256": "b1578bceb75a9f0eeaa556446ba5cdd317ff717b19e3b5249cc18359c8c64318" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneCharacter_ListByScene", + "sha256": "6567229e32116002ecdbf7b7ccc3ae5111c1c48f2fc556bbf5dfc0e14e62ef5c" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "087_Phase14B_CharacterRelationshipsIdentity", + "file": "087_Phase14B_CharacterRelationshipsIdentity.sql", + "sha256": "5f71dd8e28be23649651c9f4caf47a928610b406312dba4f59a5c0b5fcb10773", + "requires": [ + "086_Phase14A_CharacterGalleriesAvatars" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.CharacterSexValues", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.Characters", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterSexValue_GetOrCreate", + "sha256": "a74214fa67d490913a85dfe5f22166b199db3d776dd43f4daa8bb3b9847b9673" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_ListByProject", + "sha256": "dface619a6e4547ac7003a4beb5798e85e917457b143fa5c802e400029f4b14b" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_Get", + "sha256": "7dd1cd990f714acdbf29b90c3be2474657354b0fafc2013631e564251ef1156b" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_Save", + "sha256": "a3f0dd48692bda0d4f7a728001d4fac1e931502b7c2e50a080ff1fa4600d342a" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneFloorPlanOccupancy_ListByScene", + "sha256": "fa035836bf6cecc68eaac0c3284a0345ba6e33047b6d931edc909834528c1aeb" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneFloorPlanOccupancy_ListByFloorPlan", + "sha256": "46eed27868c443e10eb8bfbf0a32a38aaa2946830747b274ccc7b387afcd6b0a" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "088_InlineSqlStoredProcedureRefactor", + "file": "088_InlineSqlStoredProcedureRefactor.sql", + "sha256": "7696da6ed2d562c6a7aead7bbaa0048421878461b36ab16bef80867dd8dbee1a", + "requires": [ + "087_Phase14B_CharacterRelationshipsIdentity" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.Project_ExistsByNameForUser", + "sha256": "25b48b398abeda5e8ee5355b05c4ca07b6cb346b184b5a16bdada50cfea3c91d" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_UpdatePovCharacter", + "sha256": "e8536dc2a44adffe03eb8562f029721eb087a01aa6c3bcbc9421726db6786524" + }, + { + "kind": "module_sha256", + "name": "dbo.Import_LookupIds", + "sha256": "d36c6c116a6625c4919006f695f5067e0ae1bd4171a70eef307026108a2e9644" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectBackup_BookMetadata_List", + "sha256": "1b32d603d506b25314ea5ff9e390ce6a31b5a46ece8121f54f43e44453a372ed" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Book_ListByProject", + "sha256": "b11d698b6b799faf77261f213176484cded9b7a40f0e63034e6e72cd4f5e47e5" + }, + { + "kind": "module_sha256", + "name": "dbo.ContinuityWarning_ListDashboardUnresolved", + "sha256": "3d9ec431fbe763286bc39c10089015c2a42801dbdc7ddda5a9b99e5282daa793" + }, + { + "kind": "module_sha256", + "name": "dbo.WritingPlan_ListForManagement", + "sha256": "2b6ed0fcb7da9dd05fce53adf83dda706f61c5e4975e1567c9a6da3f685c7693" + }, + { + "kind": "module_sha256", + "name": "dbo.WritingScheduleScene_ListForPlanning", + "sha256": "aa89567639f7aa98a731ca44a13e04e9a899e0655a98f4131ba72d0db590a1d1" + }, + { + "kind": "module_sha256", + "name": "dbo.WritingScheduleItem_DeleteByPlan", + "sha256": "b8599368b967c50c123c6478db47b8533eaf0686938b2d7778c676384cea6971" + }, + { + "kind": "module_sha256", + "name": "dbo.WritingPlanSummary_ListByUser", + "sha256": "c04330f6baa0c1013c16fc386f98052ec0517bbf36471509e05c5a033208052c" + }, + { + "kind": "module_sha256", + "name": "dbo.WritingSchedulePreview_ListByPlan", + "sha256": "8290a8631b99f4f1be8b47252404646de790959807daf79b2a8e2c0137eb6c83" + }, + { + "kind": "module_sha256", + "name": "dbo.WritingScheduleDashboard_ListActive", + "sha256": "5c6c2663a4da798f448a5a6b6ebb9cee730a87dda71cb589adfef79a53aaa290" + }, + { + "kind": "module_sha256", + "name": "dbo.WritingScheduleItem_UpdatePlannedStatusForUser", + "sha256": "b0a53d7d6ecb75b44f441c1cb0e4226e13110ae16abd799d6832daf9abf96b76" + }, + { + "kind": "module_sha256", + "name": "dbo.WritingPlanSummary_ListRequiringRebalance", + "sha256": "9bdcaad26a2594f5e4472c868fd55a179802d3a4037245da9a20c27a2b94d659" + }, + { + "kind": "module_sha256", + "name": "dbo.WritingScheduleItem_UpdatePlannedDate", + "sha256": "5d91a2ec5e3e41b024437b2c045c910612f7e8f7c3caa73f117c19461f85f06b" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectDashboard_Metrics", + "sha256": "2b86ae67b3ffb896970fc0d6615c61f87e1ebdf1117e0f654a1447ed731c923d" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectDashboard_AttentionThreads", + "sha256": "fb8f4f27698ce90e018b9e8bf1de1a0398840753b236646a582032fc1c67d458" + }, + { + "kind": "module_sha256", + "name": "dbo.ProjectActivity_ListRecent", + "sha256": "547d94eb606b97e925d7ae71ec2e629e418cdd486890c2c3b44fec5b74c0bc58" + }, + { + "kind": "module_sha256", + "name": "dbo.Book_ListByProjects", + "sha256": "5f0ffa9e896a054613f26f77f0e2bd04e2a77afbd6fdbc10acc0a886fb33dd3c" + }, + { + "kind": "module_sha256", + "name": "dbo.Book_GetCoverPaths", + "sha256": "915460e37e668863467476f105ef9c76353954e4c9c4ccb90333449abd8dd988" + }, + { + "kind": "module_sha256", + "name": "dbo.ThreadEventTarget_ListByEvents", + "sha256": "b6df8c5dc69a196d937d31beb5caaef2b8c66779a2585767414a27e3664f14d1" + }, + { + "kind": "module_sha256", + "name": "dbo.ThreadEventTarget_SaveForEvent", + "sha256": "173f565a7b7637b10fa0f4bc69605fe2752ce4269fc897771f2f87c7fab2a87a" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetCustodyCharacter_ListByProject", + "sha256": "2388022b8488078e38f31a8e3ccf3c05d73ea38df994b68135f0a80469e3fce1" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetCustodySummary_ListByEvents", + "sha256": "b2723f9272bc879a783582ad02b06ce24fbd076bb436f79c8745b25aa5c57607" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterSexValue_ListForOwner", + "sha256": "f2d36043b58ad40fe4a4132c50d75b0675d86cbd9349d0d396526333d0543e49" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterSexValue_Get", + "sha256": "2ac7983aba7321c06ba53eb1850bfea73573bbc5b20c3e53c555d10802ec014a" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterImage_ListByCharacter", + "sha256": "0c9a884ae725787badefae21373aa17d002f8a688ee4cda325aa451ebdc11c8d" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterImage_Get", + "sha256": "966832b7fc1ea7d49ebcf326e62febeebdc606f6ba5335d8bafe480a4cbc3156" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterImage_Create", + "sha256": "312673056ef2a793356b61f24ef35eea0d51f995b5c3275bbcaa5c83c177cf33" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterImage_Delete", + "sha256": "7391e0716828e656fc0f8306f8ef7251b00c8db44f4b0aed1de74bf0ed2c867f" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "089_TimelineLoadPerformance", + "file": "089_TimelineLoadPerformance.sql", + "sha256": "90f2717b407a037070313cab0af3519c75c46404bef0969c75f350f25ee925c0", + "requires": [ + "088_InlineSqlStoredProcedureRefactor" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.ContinuityWarning_List", + "sha256": "529162cd5e9f3ba826c16d2bdb120bfd6014575a7c7ecb7e5016fda32aed4949" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryAsset_ListByProject", + "sha256": "3470fcfca02d1ea6d77a04396fdfbfa0855fe3bd746f219ee1fb61c62f1a8084" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetLookup_All", + "sha256": "ea165542fe3d8335729d5c0c20492473c3f88739277bc44ea7f0ba4ae42734f0" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterLookup_All", + "sha256": "4de37bbbbb9d9547e35c367feacbb03796daef9d6d1591ef7d27dd7b48b32c37" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterTimeline_GetByProject", + "sha256": "08fa54377115534bd14cb5614662312bd8ae0820afca59305475e062f8195c05" + }, + { + "kind": "module_sha256", + "name": "dbo.Timeline_SceneOverviews", + "sha256": "fbde46b350cacff0b7b1194d65d2b758783160433b81d9d841fecd5b07fd2153" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "090_Phase15A_FeatureRequests", + "file": "090_Phase15A_FeatureRequests.sql", + "sha256": "215b383199723f6144d3ecf5a6084147672f14ab3c621f3e81a06af1a0729155", + "requires": [ + "089_TimelineLoadPerformance" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.FeatureRequests", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.FeatureRequestMessages", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequest_Create", + "sha256": "147aa81577ac8591f19bc101868c0c78745786713ee601ce5eeb7f9868aeccc3" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequest_GetForUser", + "sha256": "26e81d2eb8d020daaceb20e189f409531f64c47ff5f1a5ac87bf09bb38a8804e" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequest_GetForAdmin", + "sha256": "f6e93ed619dc3b315527c23a3f5f66c2e40a03f9c1cdcd4e939a78222c613033" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequest_ListForUser", + "sha256": "355b68cfd4bcb645d6d8f87c7528e0896c277ad03d590242ace091e8bd339c90" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequest_ListForAdmin", + "sha256": "dd7b08a03c5ce21502ca45d480e10ba0526863f46fe04d91e863fb450d34c0da" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequest_UpdateStatus", + "sha256": "6fff04700495497922b6d0ee1add29d7edd9b0a63b9f52b792e3d113f8f40e49" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequest_UpdateAdminNotes", + "sha256": "24e501e5f4c04a6fef61f6356e4cc408d831a2c6ca0cc9bab228484df2940902" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequestMessage_Add", + "sha256": "b3e3e575176ad22d4f977189458c189875e4d2927b3d49b2c011690ec003dc77" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequestMessage_List", + "sha256": "ff5d650a867861790e203944d3ffbd13758fde4a9c67b1ace283804a59e58950" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "091_Phase15B_FeatureRequestWorkflow", + "file": "091_Phase15B_FeatureRequestWorkflow.sql", + "sha256": "ad2f63f4a431d13a2d91566800a2a6ea457b0b55a4d421f25d512c48da9dbbfa", + "requires": [ + "090_Phase15A_FeatureRequests" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.FeatureRequest_GetForUser", + "sha256": "26e81d2eb8d020daaceb20e189f409531f64c47ff5f1a5ac87bf09bb38a8804e" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequest_GetForAdmin", + "sha256": "f6e93ed619dc3b315527c23a3f5f66c2e40a03f9c1cdcd4e939a78222c613033" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequest_ListForUser", + "sha256": "355b68cfd4bcb645d6d8f87c7528e0896c277ad03d590242ace091e8bd339c90" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequest_ListForAdmin", + "sha256": "dd7b08a03c5ce21502ca45d480e10ba0526863f46fe04d91e863fb450d34c0da" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "092_Phase15C_FeatureRequestNotificationsRoadmap", + "file": "092_Phase15C_FeatureRequestNotificationsRoadmap.sql", + "sha256": "376a2d9150bff28e643fc24278d7af7e6bda48ed7ce1c3b3df3166bc6c3e20fb", + "requires": [ + "091_Phase15B_FeatureRequestWorkflow" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.FeatureRequests", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequest_GetForUser", + "sha256": "26e81d2eb8d020daaceb20e189f409531f64c47ff5f1a5ac87bf09bb38a8804e" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequest_GetForAdmin", + "sha256": "f6e93ed619dc3b315527c23a3f5f66c2e40a03f9c1cdcd4e939a78222c613033" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequest_ListForUser", + "sha256": "355b68cfd4bcb645d6d8f87c7528e0896c277ad03d590242ace091e8bd339c90" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequest_ListForAdmin", + "sha256": "dd7b08a03c5ce21502ca45d480e10ba0526863f46fe04d91e863fb450d34c0da" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequest_UpdateStatus", + "sha256": "6fff04700495497922b6d0ee1add29d7edd9b0a63b9f52b792e3d113f8f40e49" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequest_UpdateRoadmapVisibility", + "sha256": "86394c8e89d0b5ddc610897e0e8b3db2f5378403e4d0d495a9e0862dcf7ff151" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequestMessage_Add", + "sha256": "b3e3e575176ad22d4f977189458c189875e4d2927b3d49b2c011690ec003dc77" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequest_MarkViewedForUser", + "sha256": "a952d1c614b6068002d93bc41a33272b5daf5efb88af3a140d6f91188de7f217" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequest_CountAttentionForUser", + "sha256": "931b8dfdb800973fddee26cae77229afd4ac631252f4684918cc006a5b648e11" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequest_CountWaitingForAdmin", + "sha256": "e9fc370a5156dce2688855c63e49b5fb80c53619a5149ab5f6eb70cc50c2013d" + }, + { + "kind": "module_sha256", + "name": "dbo.FeatureRequest_ListRoadmap", + "sha256": "b356bf43438c8ce5add1f2d9c70baf65c8916119900bd805363dc7d57074eb66" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "093_Phase16A_BaseIdentityAndSceneFoundation", + "file": "093_Phase16A_BaseIdentityAndSceneFoundation.sql", + "sha256": "c1e0f9d2543e6ab8ae76e9236b02712a1f5012c51a28bf2ca8912481b79078b3", + "requires": [ + "092_Phase15C_FeatureRequestNotificationsRoadmap" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.CharacterAliases", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.AssetAliases", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.LocationAliases", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterAlias_ListByCharacter", + "sha256": "dc7476f33f99c5414e2411e20f3b643479490e62f9c9393cdb585b2bbb198415" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterAlias_Add", + "sha256": "001a1900db3609468b1d48c64257ced1c46705390c4762552bf00de022838632" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterAlias_Update", + "sha256": "adeb096f5a35fe4a05cfda4c12237a67b8efae8a11115d9336b058800f292ff0" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterAlias_Delete", + "sha256": "06d0a5ee8e20ce91bd8ee2e38f9b4f7d2449759b1aeb90889b3d31db1fd3f3c7" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetAlias_ListByAsset", + "sha256": "1d883e2c3c98805f7b6230910080e6eef5a7bec5df063a08fa2ea46032a536e6" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetAlias_Add", + "sha256": "e3dd6f285ed7da1d12d3396741b1d4b1d31fa2d99fc8b7619b20f2df6f265de5" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetAlias_Update", + "sha256": "0ced43a09104ead0e6a941fbeb3d12bf13ce83b20954983627c2d79438598352" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetAlias_Delete", + "sha256": "a885881edf8936244ff4390b4a6a58a75ba89b4b326019ab4693804aade769c5" + }, + { + "kind": "module_sha256", + "name": "dbo.LocationAlias_ListByLocation", + "sha256": "56756744471bb40619059f9f220d9fe8540981b61acb7567e67d1287cf45a9fb" + }, + { + "kind": "module_sha256", + "name": "dbo.LocationAlias_Add", + "sha256": "76300c7e5ffd154689d630b0352f2bda3b54684b3ff91e19ef3b5152b48ffff3" + }, + { + "kind": "module_sha256", + "name": "dbo.LocationAlias_Update", + "sha256": "cf341db2a3070184067602ad183604de9d949870dff164e5726d9a760b270fb4" + }, + { + "kind": "module_sha256", + "name": "dbo.LocationAlias_Delete", + "sha256": "f36fb6b235f3ce80c2b7fcedd4ce0732ca39489bbc393f046297af65ad8ec199" + }, + { + "kind": "module_sha256", + "name": "dbo.Book_ListByProject", + "sha256": "86fde3df5d3d483bb7df5be416a27cee0f4e9df279262f3bd5264672cf536ede" + }, + { + "kind": "module_sha256", + "name": "dbo.Book_ListByProjects", + "sha256": "5f0ffa9e896a054613f26f77f0e2bd04e2a77afbd6fdbc10acc0a886fb33dd3c" + }, + { + "kind": "module_sha256", + "name": "dbo.Book_Get", + "sha256": "a51e34b8ee4066c7c518e1c78f4e74b7a2c9b5a34ec911e2dc6ae2cbfc11701b" + }, + { + "kind": "module_sha256", + "name": "dbo.Book_Save", + "sha256": "e89705c9502cf0450ce202e6bece8efe73095fff3ad43c19c007c5fb8e5372ef" + }, + { + "kind": "module_sha256", + "name": "dbo.Chapter_Save", + "sha256": "40f8e3f32732d08ee8e919af271c8aa34d2e41b60cb9fb095004290eecddc221" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_Archive", + "sha256": "47e6d4ad52be74cc790ecce2bdb50efbe2fa0caff6faffd9c0b5120fd5309e5a" + }, + { + "kind": "module_sha256", + "name": "dbo.Archive_Entity", + "sha256": "9b3e3e682c6b675a128b79cdbbc7a6de3b8d672f6f17bc2f1ea7e91ef97edb4a" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "094_Phase16B_ManuscriptBindingLinkedStructures", + "file": "094_Phase16B_ManuscriptBindingLinkedStructures.sql", + "sha256": "c07a99eb63f523803c7cd749130c7ffb887e9c4757878d0089b6146b21fbe3a3", + "requires": [ + "093_Phase16A_BaseIdentityAndSceneFoundation" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.ManuscriptDocuments", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.Chapters", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.Scenes", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.ManuscriptDocument_GetByBook", + "sha256": "f9495f83e049617649873544c2a6e240c9d386f9c8531d36c5b66a09127a4a74" + }, + { + "kind": "module_sha256", + "name": "dbo.ManuscriptDocument_GetByGuid", + "sha256": "f9397df19f5505c81ff62e2d1fba39993fe333b100e91c580869716a0f4235a8" + }, + { + "kind": "module_sha256", + "name": "dbo.ManuscriptDocument_Save", + "sha256": "2b1ebe35d4dabb1c30827ebaf9dcbb69bbbd2e44af1d69d5b460463f63a01662" + }, + { + "kind": "module_sha256", + "name": "dbo.ManuscriptDocument_UpdateLastSync", + "sha256": "bc936798e4266ebf6357a06a71e78e6de68b72bd8ae3d01a4cda60cd0ee4f481" + }, + { + "kind": "module_sha256", + "name": "dbo.ManuscriptDocument_UpdateLastOpened", + "sha256": "fd673c9ad11a61358a2c1745c74ebd5156822c0173532f01461149462781afb0" + }, + { + "kind": "module_sha256", + "name": "dbo.Chapter_ListByBook", + "sha256": "8d60a83287f76c8fce4378ce67f98160c3ed7d943029e7a09e274b03954d4530" + }, + { + "kind": "module_sha256", + "name": "dbo.Chapter_Get", + "sha256": "a5b240019eddaf7827883ed00482e923cdae8a3cfe534700acafed1359af7457" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_ListByChapter", + "sha256": "38f864ecad3b60b7ee0defc92b0143bbf36754ad56fc143d24cca4c72485fd33" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_Get", + "sha256": "66d948905bb558ac557dddc6a6d58ae70790828a49988a52c40dc432229cbe08" + }, + { + "kind": "module_sha256", + "name": "dbo.Archive_Entity", + "sha256": "9b3e3e682c6b675a128b79cdbbc7a6de3b8d672f6f17bc2f1ea7e91ef97edb4a" + }, + { + "kind": "module_sha256", + "name": "dbo.Chapter_Archive", + "sha256": "0651ef08563c532bf0c8bba35e2a78250df48cc66324b58f606af9fc96daab86" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_Archive", + "sha256": "47e6d4ad52be74cc790ecce2bdb50efbe2fa0caff6faffd9c0b5120fd5309e5a" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "095_Phase16C_WordCompanionFirstRunImport", + "file": "095_Phase16C_WordCompanionFirstRunImport.sql", + "sha256": "836021a5d7cc2de750ad58f471b0b7a74f83fd4f0b7b56db08ff9eceb39a50a3", + "requires": [ + "094_Phase16B_ManuscriptBindingLinkedStructures" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Book_ListByProject", + "sha256": "b11d698b6b799faf77261f213176484cded9b7a40f0e63034e6e72cd4f5e47e5" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Book_Create", + "sha256": "b315dff83acd9df518add11b6ec4c56f37c42f60fbd0f79aadf112cd39e84d1d" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Manuscript_Analyse", + "sha256": "2be1f0414aa46f7df073ddc25c78e3917c09ccafd98ed55d54249288476ad00b" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Manuscript_Import", + "sha256": "4a59a99a3b8a0f3e9eb11f88181f8d829fc8b58a4321ad0609ef68309f96a1f1" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "096_Phase16D_WordCompanionCharacterDiscovery", + "file": "096_Phase16D_WordCompanionCharacterDiscovery.sql", + "sha256": "b3b9ea12aa3483e18817ad6b9a8c5736b6e49dacac4f64f15d1f6101f2118931", + "requires": [ + "095_Phase16C_WordCompanionFirstRunImport" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Project_HasAccess", + "sha256": "2721d83ef395a670817d7883894f9c8388dc6b0107e450abf046fe0de507133b" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Character_CreateDiscovered", + "sha256": "b0da8a9b8e5ef11cbfb1f7096e9b050374b15cd01461c4ecc91ea6f5c72c5fe7" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "097_Phase16F_WordCompanionRuntimeSceneWordCountSync", + "file": "097_Phase16F_WordCompanionRuntimeSceneWordCountSync.sql", + "sha256": "1c019454631ef6189f8730e73872c4cf348f86d7ae67fefa53506f91b9affced", + "requires": [ + "096_Phase16D_WordCompanionCharacterDiscovery" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Runtime_SceneWordCount_Update", + "sha256": "c42199a80b87b0d785e3294ffbf91ca2489402f43c2fc77dc702c5601ddb1e91" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "098_Phase16H_WordCompanionCharacterSuggestions", + "file": "098_Phase16H_WordCompanionCharacterSuggestions.sql", + "sha256": "86113185b3daaf093b0ac168f56bdc724363b653c2f0809c41781baa4ba6ed25", + "requires": [ + "097_Phase16F_WordCompanionRuntimeSceneWordCountSync" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.SceneCharacterSuggestions", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Runtime_CharacterAlias_List", + "sha256": "2a9ee14951194ce75a86a9096374858148516284c13d183cefba66efba2a0f8b" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Runtime_CharacterSuggestions_Create", + "sha256": "2e40d68d8ed9dd00263fe667a581e21ddaa715026c38dd4232d2da8801facc7a" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "099_FixSceneCharacterSaveQuotedIdentifier", + "file": "099_FixSceneCharacterSaveQuotedIdentifier.sql", + "sha256": "ff45903717250eeeb69d3ac1d64418870e44d203ec475da715a3c80cd70996a0", + "requires": [ + "098_Phase16H_WordCompanionCharacterSuggestions" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.SceneCharacter_Save", + "sha256": "7f9a89cbc27f20fbfae47804211e801c446c03683d0528fe1684002e25629803" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "100_Phase16I_WordCompanionCharacterSuggestionReview", + "file": "100_Phase16I_WordCompanionCharacterSuggestionReview.sql", + "sha256": "27bd259ae58787726e0dc7ef3dc0bb25d52d31dd9e226e92afff0908157a61a2", + "requires": [ + "099_FixSceneCharacterSaveQuotedIdentifier" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.SceneCharacterSuggestions_ListByScene", + "sha256": "6017261a2c035a510d5c9ad19a9bb8013b4768f51647c4429bff0f230c72074f" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneCharacterSuggestion_Accept", + "sha256": "da5c18dd54c03c88cf171ff7d27f48ba632015f5b1583d70639a83e92dbe0876" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneCharacterSuggestion_Reject", + "sha256": "b2e33c318b6a649c4de7e818cebd474961f2bf3b197460aed07ed58cf255f3c6" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneCharacterSuggestions_CountByChapter", + "sha256": "aa9d820caabf8093722ac959ca1eec318ec95dd1b7418866bad9cc8a3fe16b83" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Runtime_CharacterSuggestions_Create", + "sha256": "2e40d68d8ed9dd00263fe667a581e21ddaa715026c38dd4232d2da8801facc7a" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "102_Phase16J_FixFollowSceneEditUrl", + "file": "102_Phase16J_FixFollowSceneEditUrl.sql", + "sha256": "cc1d57157d6dbc64a3b870b6882502e1958a291626d28568ade9b720bdfd5196", + "requires": [ + "100_Phase16I_WordCompanionCharacterSuggestionReview" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Runtime_CurrentScene_Validate", + "sha256": "c2db03f2617fe2a1050f9284329cc9976f609ee99151c0ad47126a3fe43d4480" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "103_Phase16K_WordCompanionAssetSuggestions", + "file": "103_Phase16K_WordCompanionAssetSuggestions.sql", + "sha256": "953a109ab5a19da42d9211f4f557ba32d7e14cb600157556f2d71ec2dabcb02f", + "requires": [ + "102_Phase16J_FixFollowSceneEditUrl" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.SceneAssetSuggestions", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Runtime_AssetAlias_List", + "sha256": "aa5417f25a6472ce88f01859b9074012d65ed256bc8a1d4fef3f74cbddf108e3" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Runtime_AssetSuggestions_Create", + "sha256": "beaedce10ecd4309dc481a4aa246f742da758bc5c91e9b3cbc0885bd2e9e6755" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "104_Phase16L_WordCompanionAssetSuggestionReview", + "file": "104_Phase16L_WordCompanionAssetSuggestionReview.sql", + "sha256": "03dd94c349afa80dd5203c10542e6e7fd0db9bc8343f8ac9bd8eb5bf0ba9e3ed", + "requires": [ + "103_Phase16K_WordCompanionAssetSuggestions" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.SceneAssetSuggestions_ListByScene", + "sha256": "1233760bf287547cf4bb81060709b540efa37ef5fffdc0dbfb6a062029844ee9" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneAssetSuggestion_Accept", + "sha256": "ea299e9b246da804268184ea67344ace7e3865eeb1b4b53ce1a1a2a07bd2b7a1" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneAssetSuggestion_Reject", + "sha256": "cc09ab788886bcb4b7d5d26187f1f0735c8d8530ea8e8d9a82826cb4da93d937" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneAssetSuggestions_CountByChapter", + "sha256": "7c17a7c4e07b27864996a9f9249129309206708ac51dbea487c18868530a026e" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "105_Phase16M_LocationDetectionMetadata", + "file": "105_Phase16M_LocationDetectionMetadata.sql", + "sha256": "cb7776a86915928b0368ffc74d0d97039b4fdd9810eff16f5a6ef16a79029b04", + "requires": [ + "104_Phase16L_WordCompanionAssetSuggestionReview" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Locations", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.LocationPaths", + "sha256": "a8414027654a772958659787a3023b7aee8f0a883fef00f73059d03c0f3b6287" + }, + { + "kind": "module_sha256", + "name": "dbo.Location_ListByProject", + "sha256": "8ef87333010e0b3e43e0493edc40584317445e11ac9aaf604086cd106cc6749d" + }, + { + "kind": "module_sha256", + "name": "dbo.Location_Get", + "sha256": "7f8009a7a8570b19a1cb1b61f03c801e05685338617358bbceefbe13d0d6082b" + }, + { + "kind": "module_sha256", + "name": "dbo.Location_Save", + "sha256": "2da83c20f059677e586cd5436f4abfec065e6f55a874a8af113ad57496a594fd" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Runtime_LocationAlias_List", + "sha256": "3402ec811063b924721c288a1add334e8e5229fa9b3be80d7a079425ad42a016" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "106_Phase16N_WordCompanionLocationSuggestions", + "file": "106_Phase16N_WordCompanionLocationSuggestions.sql", + "sha256": "d02c5f350f7c0a065f608954950eed1ea5e8fc3b72d2e79b7e1d3059d810775c", + "requires": [ + "105_Phase16M_LocationDetectionMetadata" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.SceneLocationSuggestions", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Runtime_LocationSuggestions_Create", + "sha256": "c676f647d92ebf83f1c214d234aa55bd2fb0be23933243056edfa3ddf53517f4" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "107_Phase16O_WordCompanionLocationSuggestionReview", + "file": "107_Phase16O_WordCompanionLocationSuggestionReview.sql", + "sha256": "a2e4d7a99d31ecd551dc87fea7c4853126b51c9dca21cfdb4e6ddb45dcec3e2f", + "requires": [ + "106_Phase16N_WordCompanionLocationSuggestions" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.SceneLocationSuggestions_ListByScene", + "sha256": "ffb83148289047b83060052d0815a68edc9b9aa4dfe95361dcde544d4c9ad188" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneLocationSuggestion_Accept", + "sha256": "e00281b35e3e436e0fd37680d283c44bac2c772b65d930e960a392faab058b0c" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneLocationSuggestion_Reject", + "sha256": "711ca9d133dfc1cdb3ab0c00cb742cd0518f209d9f587f23c26d2a16c19381ef" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneLocationSuggestions_CountByChapter", + "sha256": "498af543fc7b9c68cdf87f93fe5aded7c924093f67f21e6b6c8d0e9c66f14072" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "108_Phase16Q_ManuscriptUnlink", + "file": "108_Phase16Q_ManuscriptUnlink.sql", + "sha256": "18d5ed4cc98e31a4099198bfe5b3cb9be041ffb4c5a36d9cfd93d6aaa7433e46", + "requires": [ + "107_Phase16O_WordCompanionLocationSuggestionReview" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.ManuscriptDocument_UnlinkBook", + "sha256": "b83e446b039afd75c9662d429aac74ff6a07a878e4949d9b2f052382a20f2186" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "109_DropdownListOrderingConsistency", + "file": "109_DropdownListOrderingConsistency.sql", + "sha256": "17e3a8500a643f34e50333fc93d9ac7d66a1545a214987ffbb6dab212db59da5", + "requires": [ + "108_Phase16Q_ManuscriptUnlink" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.StoryAsset_ListByProject", + "sha256": "3470fcfca02d1ea6d77a04396fdfbfa0855fe3bd746f219ee1fb61c62f1a8084" + }, + { + "kind": "module_sha256", + "name": "dbo.AssetTimeline_GetByProject", + "sha256": "82d4e5ad8c882d15f8ca1ab529833e2dfd98fb0f987a98c05fddf99e658146b4" + }, + { + "kind": "module_sha256", + "name": "dbo.Location_ListByProject", + "sha256": "8ef87333010e0b3e43e0493edc40584317445e11ac9aaf604086cd106cc6749d" + }, + { + "kind": "module_sha256", + "name": "dbo.PlotThread_ListByProject", + "sha256": "e0ff4f2142dd0837207851e8cd98e33a7efae88cfc460b725506f68c7425cd62" + }, + { + "kind": "module_sha256", + "name": "dbo.PlotThread_ListByPlotLine", + "sha256": "805b2c2bc8de636d8174a040e53cf401081380f14d34d1fb36b938a96178b6bd" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Book_ListByProject", + "sha256": "b11d698b6b799faf77261f213176484cded9b7a40f0e63034e6e72cd4f5e47e5" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Book_Structure", + "sha256": "c6dc10480b2b55df03b5b05fed94955ddac20302eca5945247399c8260f006cb" + }, + { + "kind": "module_sha256", + "name": "dbo.WordCompanion_Chapter_List", + "sha256": "744c5cdd8f56f2857f2e255f935e668d4710a4e6684ef8e616b2d019e52f54f0" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "110_LocationLeafNameListOrdering", + "file": "110_LocationLeafNameListOrdering.sql", + "sha256": "7f7b6e56ab1b9005a5e76dece3f27f2f5c226a0f76c092740da31f6844121ee7", + "requires": [ + "109_DropdownListOrderingConsistency" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.Location_ListByProject", + "sha256": "8ef87333010e0b3e43e0493edc40584317445e11ac9aaf604086cd106cc6749d" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "111_Phase20A_StoryIntelligenceOnboarding", + "file": "111_Phase20A_StoryIntelligenceOnboarding.sql", + "sha256": "3908d2b955bf91db2d3db1763b40893e0176a25df07cfa23553acfffff29ca1e", + "requires": [ + "110_LocationLeafNameListOrdering" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.UserOnboardingState", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.UserOnboarding_Get", + "sha256": "f9825fad71c1b83ddcbc50575296c4c3e10f8e0a9a3eedc6b776bf342c78b6f2" + }, + { + "kind": "module_sha256", + "name": "dbo.UserOnboarding_GetOrCreate", + "sha256": "bedada376698796a1232b20ef0d6bb548bf3c92bbce07a7c26bbd52383088682" + }, + { + "kind": "module_sha256", + "name": "dbo.UserOnboarding_SetCurrentStep", + "sha256": "6a63a9a7fcd77228ac1db397781bb208f78aa39c89eb22cc7509b3a1804d5dea" + }, + { + "kind": "module_sha256", + "name": "dbo.UserOnboarding_SaveWritingJourney", + "sha256": "eb42ca960eb95fc7485204cf13e05b4972dcf863b226df5e116182fe1835d227" + }, + { + "kind": "module_sha256", + "name": "dbo.UserOnboarding_SaveWritingSoftware", + "sha256": "932141fb4bf87980e195de6e36edee2629a4da3a6c4a9da4f178ee9437cda009" + }, + { + "kind": "module_sha256", + "name": "dbo.UserOnboarding_MarkCompleted", + "sha256": "90ca548754dd9a94a470ec3ae68f88d441a3ae5efcd8159ba616225c57768bcf" + }, + { + "kind": "module_sha256", + "name": "dbo.UserOnboarding_ShouldShowWordCompanionHeader", + "sha256": "2b88948c0c550a9e6b738e5880f9094464e6508bb0bde85d2a2754cae9b30e45" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "112_Phase20B_OnboardingProjectBook", + "file": "112_Phase20B_OnboardingProjectBook.sql", + "sha256": "33e19ae22863ce2c6e5c3324640cf2c3338221a71f101c1b2740aa2992ef0642", + "requires": [ + "111_Phase20A_StoryIntelligenceOnboarding" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.UserOnboardingState", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.UserOnboarding_Get", + "sha256": "f9825fad71c1b83ddcbc50575296c4c3e10f8e0a9a3eedc6b776bf342c78b6f2" + }, + { + "kind": "module_sha256", + "name": "dbo.UserOnboarding_GetOrCreate", + "sha256": "bedada376698796a1232b20ef0d6bb548bf3c92bbce07a7c26bbd52383088682" + }, + { + "kind": "module_sha256", + "name": "dbo.UserOnboarding_SetCurrentStep", + "sha256": "6a63a9a7fcd77228ac1db397781bb208f78aa39c89eb22cc7509b3a1804d5dea" + }, + { + "kind": "module_sha256", + "name": "dbo.UserOnboarding_SaveWritingJourney", + "sha256": "eb42ca960eb95fc7485204cf13e05b4972dcf863b226df5e116182fe1835d227" + }, + { + "kind": "module_sha256", + "name": "dbo.UserOnboarding_SaveWritingSoftware", + "sha256": "932141fb4bf87980e195de6e36edee2629a4da3a6c4a9da4f178ee9437cda009" + }, + { + "kind": "module_sha256", + "name": "dbo.UserOnboarding_SaveProject", + "sha256": "fc2bc5172deee89af4631c42b0e7b507000c030ef4bc6906ee95e499ace9e5e6" + }, + { + "kind": "module_sha256", + "name": "dbo.UserOnboarding_SaveBook", + "sha256": "cc9234b8ae271a24bdb66b10cc0a3393e068673a70c8b74717571c19c11c45ef" + }, + { + "kind": "module_sha256", + "name": "dbo.UserOnboarding_MarkCompleted", + "sha256": "90ca548754dd9a94a470ec3ae68f88d441a3ae5efcd8159ba616225c57768bcf" + }, + { + "kind": "module_sha256", + "name": "dbo.UserOnboarding_ShouldShowWordCompanionHeader", + "sha256": "2b88948c0c550a9e6b738e5880f9094464e6508bb0bde85d2a2754cae9b30e45" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "113_Phase20F_OnboardingManuscriptBuild", + "file": "113_Phase20F_OnboardingManuscriptBuild.sql", + "sha256": "ac97a7f0415c350aec34bbef430c8d259dcd80b289cbd8ecf195da226af51216", + "requires": [ + "112_Phase20B_OnboardingProjectBook" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.OnboardingManuscriptBuilds", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.OnboardingManuscriptBuildChapterMap", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.OnboardingManuscriptBuildSceneMap", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.OnboardingManuscriptBuildCharacterMap", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.Onboarding_ManuscriptBuild_Create", + "sha256": "2062eb4bbb84919d1b1b710a8e04e31e3b9c12a80f0a46369f41d47fc77b9f47" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "114_Phase20H_StoryIntelligenceFramework", + "file": "114_Phase20H_StoryIntelligenceFramework.sql", + "sha256": "8a7931bd6ed61591fdde2fac39f69e94970ac951bc3484ee103d71bfc40013da", + "requires": [ + "113_Phase20F_OnboardingManuscriptBuild" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceConsents", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryIntelligenceJobs", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceJob_Get", + "sha256": "6bbc9c4b1d8026dc3b59a041927a1114413a4681552c2e03ad09fb68a95ce7a4" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceJob_CreateWithConsent", + "sha256": "a9e55c04f4affd005d172744dea86a5160ee3810ad1c742defa0a64ab736469a" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceJob_GetLatestForUser", + "sha256": "02e6e3d6ef149d99d77d044b4228cb232a07a23ab37d86773d2c46238a70f9b0" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceJob_ClaimNextPending", + "sha256": "74a5310685d2966b27e9ff33fb6d16c87e932dca97829a279b533706f511adeb" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceJob_UpdateProgress", + "sha256": "5e26a02c89993e761005933d3db32ab3e8c9cf600de4e1cc3e90ce1595d239dc" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceJob_Complete", + "sha256": "7420dcab430be89775d58dbfaafd65e3276ee603697d2758a1a01548ecd620b1" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceJob_Cancel", + "sha256": "26d912d4b0d53372e9ed61e2d637a93e547c48fade255b29565dc00447b8d795" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceJob_Fail", + "sha256": "ab9bf7f9bb160891129b839cadeacbdf81b3f88a9092804f73c06152c5502257" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "115_Phase20I_StoryIntelligenceResultPersistence", + "file": "115_Phase20I_StoryIntelligenceResultPersistence.sql", + "sha256": "9dd82556b9ebfdedb414a117912f64b93575cfb293f20f22974b1eb457506e56", + "requires": [ + "114_Phase20H_StoryIntelligenceFramework" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceRuns", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryIntelligenceChapterResults", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryIntelligenceSceneResults", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_Save", + "sha256": "657552b72acc7707070eb768d422db537017078192bc005a153435597c71fbfb" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceChapterResult_Save", + "sha256": "ecbdccc66cd76d4e347dd8cd3d7034e86f27adb659f216afe9d7fb836e321589" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceSceneResult_Save", + "sha256": "dcc353fc09580bab1d3507866c311ec49edb2a396394f39746dadee9a2a44db4" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_ListAdmin", + "sha256": "f002c405608b4f4d1b99528b33bef4a0e9d55a24c1f3aff70f696c5229bc15ae" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_GetAdmin", + "sha256": "67d31303b6ba1fae8dd3bfe38ea01007d9a2288b5f466b36a7688f6250932882" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceChapterResult_GetByRun", + "sha256": "ad6cc3652edb5eb696b8c0ab096404a5f7271eb9fdc4e8f67e62f7777f676cbd" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceSceneResult_ListByRun", + "sha256": "477145ab079fa275409532493e97cb0f8bde062e1af1efce5f4ec1dfcfb589fd" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "116_Phase20J_StoryIntelligenceRunAuditFields", + "file": "116_Phase20J_StoryIntelligenceRunAuditFields.sql", + "sha256": "739ec158fd21286f7e4c47680bfadf8bc705658e9f19715be68114d630d59fa9", + "requires": [ + "115_Phase20I_StoryIntelligenceResultPersistence" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceRuns", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_Save", + "sha256": "657552b72acc7707070eb768d422db537017078192bc005a153435597c71fbfb" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_ListAdmin", + "sha256": "f002c405608b4f4d1b99528b33bef4a0e9d55a24c1f3aff70f696c5229bc15ae" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_GetAdmin", + "sha256": "67d31303b6ba1fae8dd3bfe38ea01007d9a2288b5f466b36a7688f6250932882" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "117_Phase20K_PersistedStoryIntelligenceRunner", + "file": "117_Phase20K_PersistedStoryIntelligenceRunner.sql", + "sha256": "8c66f80ab0dea443b9fa672801c0e4beaf8cf4c0f648b8b08de86567ba699213", + "requires": [ + "116_Phase20J_StoryIntelligenceRunAuditFields" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceRuns", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_QueueAdminText", + "sha256": "05d7a70e3bb74b1e4905d33ad36c1819146d86b9874bd971588e730e923f1349" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_ClaimNextPending", + "sha256": "3aee04d96e58b636ee9df2f6227f06196ff6ce44de797f4bd14248c9051e25f7" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_UpdateProgress", + "sha256": "0a9f10f8d01b7920810aa207af4ba1619602a8dd893aa6f977f0cc119c96ac47" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_Complete", + "sha256": "0147bf90e6955fa779f97e633b4769a2e4c5c50117b7dea17c805b3410026928" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_Fail", + "sha256": "806dbae29ea5ed6dba352d7fdcd8075ae972d121623fdf1c11f0e72bb9acb374" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_RequestCancel", + "sha256": "d531eaa701b15bc364b0e4b19f7c8bc1d42f7bece4e64ac95ddbb4587054c6e6" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_Cancel", + "sha256": "0eec88326c2732ba46d5bb4aa30541f635e5d4bbaff38140405133adf3eccb31" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_GetAdmin", + "sha256": "67d31303b6ba1fae8dd3bfe38ea01007d9a2288b5f466b36a7688f6250932882" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "118_Phase20L_StoryIntelligenceExistingChapterSource", + "file": "118_Phase20L_StoryIntelligenceExistingChapterSource.sql", + "sha256": "f92d3ed180e683b1c1f27312f99de2446727f7adf43479565b9b0c7ba4c198b1", + "requires": [ + "117_Phase20K_PersistedStoryIntelligenceRunner" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceRuns", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceSource_ProjectListAdmin", + "sha256": "1b3a31d56a014d272e61bff8173ee80e5908889d37a842357a1a3d7adf8887e6" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceSource_BookListAdmin", + "sha256": "1a18df58b2cd6788962ef8ccd3fba0e406a206146b068b41cbb79eb5db8757e7" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceSource_ChapterListAdmin", + "sha256": "6304beb09bb6cb4c65de8412ee8b6e39cc6af16483bcdead4b1c5f55745d3126" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceSource_ChapterText_GetAdmin", + "sha256": "309fbecf3f9e42bf9fd9f36ba73bd5e09e921c3ea693ffeca04fb5697dd68369" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_QueueAdminText", + "sha256": "05d7a70e3bb74b1e4905d33ad36c1819146d86b9874bd971588e730e923f1349" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_ClaimNextPending", + "sha256": "3aee04d96e58b636ee9df2f6227f06196ff6ce44de797f4bd14248c9051e25f7" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_ListAdmin", + "sha256": "f002c405608b4f4d1b99528b33bef4a0e9d55a24c1f3aff70f696c5229bc15ae" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_GetAdmin", + "sha256": "67d31303b6ba1fae8dd3bfe38ea01007d9a2288b5f466b36a7688f6250932882" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "119_Phase20R_FullChapterTestHarness", + "file": "119_Phase20R_FullChapterTestHarness.sql", + "sha256": "78499a28d13c6039c7fa8b9303ebd760c8ed1c5de6de4bd78a9533e74a518af5", + "requires": [ + "118_Phase20L_StoryIntelligenceExistingChapterSource" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_QueueAdminText", + "sha256": "05d7a70e3bb74b1e4905d33ad36c1819146d86b9874bd971588e730e923f1349" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "120_Phase20R_DeterministicChapterParagraphs", + "file": "120_Phase20R_DeterministicChapterParagraphs.sql", + "sha256": "50edd90e2962feb0b4eeb796d36a149b8440e1567c74e14e5889a4e766e2014b", + "requires": [ + "119_Phase20R_FullChapterTestHarness" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceRuns", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_QueueAdminText", + "sha256": "05d7a70e3bb74b1e4905d33ad36c1819146d86b9874bd971588e730e923f1349" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_GetAdmin", + "sha256": "67d31303b6ba1fae8dd3bfe38ea01007d9a2288b5f466b36a7688f6250932882" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "121_Phase20V_StoryIntelligenceImportCommit", + "file": "121_Phase20V_StoryIntelligenceImportCommit.sql", + "sha256": "c84c4060c22e24390af02a9061500e7ff44744cac8cc5086578b3586672e3adf", + "requires": [ + "120_Phase20R_DeterministicChapterParagraphs" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceImportCommits", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.Scenes", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceImportCommit_GetByRun", + "sha256": "3e655c519c3ab26489d34b1b4246bca993f3c8a5446d0b65080763bd859573de" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceImportCommit_HasCompleted", + "sha256": "9a12d6809e31a31eb960db733ec32f48f923e5e83bf904a1164d4de76a06a75b" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceImportCommit_CountChapterScenes", + "sha256": "7e6ea13a6978c6429ea73fa003dc130f8d6eb7061d30b79fd31a4549a62832a9" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceSceneSource_Save", + "sha256": "0d67f1983e341551be9c2fa13ecae549030657e86a6ccb7e6a6a4cc1180cc9b8" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceImportCommit_RecordCompleted", + "sha256": "ba6144dc8b2111ca837f5278be32c899bbf65f51b6d06c3a9f0ff9ad2a60f03e" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceImportCommit_RecordFailed", + "sha256": "e46a79ae9afd12f47f2fb0f7712a7575e05a5d86a12f83be57751db6e3999482" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "122_Phase20Y_DefaultPlaceholderCommit", + "file": "122_Phase20Y_DefaultPlaceholderCommit.sql", + "sha256": "fe08ddfbfcbf5ca4503053fccbce62ca1b34cd20bb19f18f8db3b8c0f051cb20", + "requires": [ + "121_Phase20V_StoryIntelligenceImportCommit" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceImportCommit_GetChapterReadiness", + "sha256": "1fa2262461156e241823ccd5603bece9ef11d0211909e7cd93ac23d819d8e286" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "123_Phase20Z_CommitReadinessAndArchiveHardDelete", + "file": "123_Phase20Z_CommitReadinessAndArchiveHardDelete.sql", + "sha256": "1556001f3b9b38cb232827dc7b6ab7129354b2e9af4642392a6471e62b777dac", + "requires": [ + "122_Phase20Y_DefaultPlaceholderCommit" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceImportCommit_GetChapterReadiness", + "sha256": "1fa2262461156e241823ccd5603bece9ef11d0211909e7cd93ac23d819d8e286" + }, + { + "kind": "module_sha256", + "name": "dbo.Archive_DeleteForever", + "sha256": "3379673cd28b8b4786c5f4b21339532a9c4e4958cdeb1c6fdc3bb4ce84d92356" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "124_Phase20Z2_StoryIntelligenceCommitAndProjectHardDelete", + "file": "124_Phase20Z2_StoryIntelligenceCommitAndProjectHardDelete.sql", + "sha256": "6e12913e6879f7afa33baf776aaca586bf30045e292956b688b2e3500122ca6d", + "requires": [ + "123_Phase20Z_CommitReadinessAndArchiveHardDelete" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.ProjectHardDelete_ForOwner", + "sha256": "be2b265c224dbe670b843dd3f8dadf574a0f50fee9ae9259b4a21f5a7328d951" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "125_Phase20AE_RemoveDefaultScenePlaceholder", + "file": "125_Phase20AE_RemoveDefaultScenePlaceholder.sql", + "sha256": "1a1132278a3d0a6c8452d9634d254a8ea0968e738b989087fdba33de74a0313e", + "requires": [ + "124_Phase20Z2_StoryIntelligenceCommitAndProjectHardDelete" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceImportCommit_GetChapterReadiness", + "sha256": "1fa2262461156e241823ccd5603bece9ef11d0211909e7cd93ac23d819d8e286" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "126_Phase20AH_ChapterPurposeAndStoryIntelligenceCharacters", + "file": "126_Phase20AH_ChapterPurposeAndStoryIntelligenceCharacters.sql", + "sha256": "5bddd8e41a2a79c875e03514318600c138f3ff165fcf25009cefd82bc98a9e6c", + "requires": [ + "125_Phase20AE_RemoveDefaultScenePlaceholder" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.ChapterPurposeTypes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.Chapters", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.Lookup_All", + "sha256": "51d703b79a46ee2dd263aeae5d21de9c2d03d08f18d49d7920e576816c576f50" + }, + { + "kind": "module_sha256", + "name": "dbo.Chapter_ListByBook", + "sha256": "8d60a83287f76c8fce4378ce67f98160c3ed7d943029e7a09e274b03954d4530" + }, + { + "kind": "module_sha256", + "name": "dbo.Chapter_Get", + "sha256": "a5b240019eddaf7827883ed00482e923cdae8a3cfe534700acafed1359af7457" + }, + { + "kind": "module_sha256", + "name": "dbo.Chapter_Save", + "sha256": "40f8e3f32732d08ee8e919af271c8aa34d2e41b60cb9fb095004290eecddc221" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceImportCommit_UpdateChapterPlanning", + "sha256": "2c0c6f34149f453361a2afd90ce5e0220fd740255c9d2e9f25773f17ef823a24" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "127_Phase20AJ_StoryIntelligencePipelineState", + "file": "127_Phase20AJ_StoryIntelligencePipelineState.sql", + "sha256": "f9ebaf54c4b4422f6bfda6ebaf48f69f40d46469b9fa748836b3eef3588b33d5", + "requires": [ + "126_Phase20AH_ChapterPurposeAndStoryIntelligenceCharacters" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceBookPipelines", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceBookPipeline_GetByBook", + "sha256": "18276a32ef8c294bd5768fbc0552aadcc9e3dc457beb3974d91064ffa71ff9cb" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceBookPipeline_Upsert", + "sha256": "ecf42327944210e15b9d7bc809e938546efbf51681a2275b92c7b0f08f2cb3cc" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceBookPipeline_GetByBookForUser", + "sha256": "c12529fa7660d14bfa9ade2832076c19fb7be0d108134548da51c89c30014b71" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceBookPipeline_ListForUser", + "sha256": "279d736545036d75bac323d1be0e93c7c1a7a88147e05953045d056301522106" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceBookPipeline_ListCommittedRunsByBook", + "sha256": "a73696df010b4575609be83e7f5efb570c3544fedff0b0c1212763d8a3c9dc3c" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "128_Phase20AL_SceneListImportTracking", + "file": "128_Phase20AL_SceneListImportTracking.sql", + "sha256": "d2a5184287031a9c517c2a51cc2e933fa48ed46bf69e1eb9638cd2729803a59c", + "requires": [ + "127_Phase20AJ_StoryIntelligencePipelineState" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.Scene_ListByChapter", + "sha256": "38f864ecad3b60b7ee0defc92b0143bbf36754ad56fc143d24cca4c72485fd33" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "129_Phase20AN_LocationReviewPipelineStages", + "file": "129_Phase20AN_LocationReviewPipelineStages.sql", + "sha256": "067e1d141c3790d377a2b796aa0896b45b22a88c57daf829939f3878b5a8c34e", + "requires": [ + "128_Phase20AL_SceneListImportTracking" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceBookPipelines", + "type": "U" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "130_Phase20AP_AssetReviewPipelineStages", + "file": "130_Phase20AP_AssetReviewPipelineStages.sql", + "sha256": "fa1f3de9db0dc80dc1165b67425f4cde6a378a94f041f2596d79ff325484634b", + "requires": [ + "129_Phase20AN_LocationReviewPipelineStages" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceBookPipelines", + "type": "U" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "131_Phase20AS_RelationshipReviewPipelineStages", + "file": "131_Phase20AS_RelationshipReviewPipelineStages.sql", + "sha256": "9cbc8e3296e15c6feb576b728f32924881d9f2ccfeedcb1610988e7eab3d6fa0", + "requires": [ + "130_Phase20AP_AssetReviewPipelineStages" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceBookPipelines", + "type": "U" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "132_Phase20AT_RelationshipTypeTaxonomy", + "file": "132_Phase20AT_RelationshipTypeTaxonomy.sql", + "sha256": "c0285fb83bd91c4942a06856e766741554d6abb0326508703c3a6e21d1ea42d8", + "requires": [ + "131_Phase20AS_RelationshipReviewPipelineStages" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "133_Phase20AU_KnowledgeReviewPipelineStages", + "file": "133_Phase20AU_KnowledgeReviewPipelineStages.sql", + "sha256": "9730921ad37a8cb7a288a6038417454726a88ea53ae7861de712eac33a539c51", + "requires": [ + "132_Phase20AT_RelationshipTypeTaxonomy" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceBookPipelines", + "type": "U" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "134_Phase20AV_ArchivedBookProjectPermanentDeletion", + "file": "134_Phase20AV_ArchivedBookProjectPermanentDeletion.sql", + "sha256": "e0198cf00633a366cab890dc92d2b897df73b51c92e2e41b487dcc743905dc77", + "requires": [ + "133_Phase20AU_KnowledgeReviewPipelineStages" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceBookPipelines", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.BookHardDelete_ForOwner", + "sha256": "b1273bf3286ace496f124a334ae23f757f110761f1fdef43f0527cdb948c6622" + }, + { + "kind": "module_sha256", + "name": "dbo.Archive_DeleteForever", + "sha256": "3379673cd28b8b4786c5f4b21339532a9c4e4958cdeb1c6fdc3bb4ce84d92356" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "135_Phase21C_IllustrationLibrary", + "file": "135_Phase21C_IllustrationLibrary.sql", + "sha256": "70e8946381db70f21e4b6dab9dcb49b6bbedcec214fbbcf5271155f80a9fbcf7", + "requires": [ + "134_Phase20AV_ArchivedBookProjectPermanentDeletion" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.IllustrationLibraryItems", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_List", + "sha256": "ce306b566d13e0cc1ac9969fd66172e6fdece34e47a90ab9f6bfa58bd0dbb81a" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_Summary", + "sha256": "54a50228ca05591e1b993f518027cb09de991fc400b737ec8caad30b6c6db235" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_Get", + "sha256": "c5b4b43638729bbebaa169f3412c2d962822e6fc28a29585d4a8b4e11c69a2c0" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_UpsertPlanned", + "sha256": "abe034d02960a9ea5075c934761f5efe6823f6190e9ea8a9eb230f77d2b53564" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_Queue", + "sha256": "67a7462f173fccb2c3f94be16bf0edfec0d0bceda96451f5f6b015865ca5e473" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_ClaimNext", + "sha256": "3eeb2a252c06c6d6d23a98ed85835172aef3c8cfc0e56edd600414057b08716b" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_MarkGenerated", + "sha256": "85c993e46c49a5392e8549ec0eae09a008ea1c80ba52022c77c5322c44436e95" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_MarkFailed", + "sha256": "c31a98a129dd093da58943393ac7c1634bfbb49ba30958194f9425f2c8fd5ade" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_Approve", + "sha256": "03ee359e6832241b43f0d82c959dfda8f98962bab443321f70cf3f98cf021fb3" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_Reject", + "sha256": "8361d30b390c41d5c4c4f420bd791607ddcb3e6e543f4d457949e69372528465" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_Disable", + "sha256": "61a7f2acd0f524f249f0cd0d32524bc0cb6f7ee89f9b35f62506cd3e51718115" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_UpdateMetadata", + "sha256": "54de9a4f2683596253f39d85fe2b67399405c3a96a07ac689ff942cc53473bee" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_GetApproved", + "sha256": "b1f4c2d4c3cd3d0e5d0217569291f803791fa0a9b5ef9ed0fc8169bb05489d21" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "136_Phase21D_IllustrationLibraryGenerationStudio", + "file": "136_Phase21D_IllustrationLibraryGenerationStudio.sql", + "sha256": "e892ba5bb8c65ae54f8a919f02f01825d0427936580913ce04dc74a8a8403b61", + "requires": [ + "135_Phase21C_IllustrationLibrary" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.IllustrationLibraryItems", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_List", + "sha256": "ce306b566d13e0cc1ac9969fd66172e6fdece34e47a90ab9f6bfa58bd0dbb81a" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_Summary", + "sha256": "54a50228ca05591e1b993f518027cb09de991fc400b737ec8caad30b6c6db235" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_UpsertPlanned", + "sha256": "abe034d02960a9ea5075c934761f5efe6823f6190e9ea8a9eb230f77d2b53564" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_ClaimNext", + "sha256": "3eeb2a252c06c6d6d23a98ed85835172aef3c8cfc0e56edd600414057b08716b" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_MarkGenerated", + "sha256": "85c993e46c49a5392e8549ec0eae09a008ea1c80ba52022c77c5322c44436e95" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_MarkFailed", + "sha256": "c31a98a129dd093da58943393ac7c1634bfbb49ba30958194f9425f2c8fd5ade" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_Approve", + "sha256": "03ee359e6832241b43f0d82c959dfda8f98962bab443321f70cf3f98cf021fb3" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_Reject", + "sha256": "8361d30b390c41d5c4c4f420bd791607ddcb3e6e543f4d457949e69372528465" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_CreateRegeneration", + "sha256": "98ce6bfa45ef76639cd62e5096823186944ec54a614289d42a7d537b350d9cd7" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "137_Phase21H_BookLevelStoryIntelligenceImportSessions", + "file": "137_Phase21H_BookLevelStoryIntelligenceImportSessions.sql", + "sha256": "c5605d48e607c0f7dfa2c5e2542ae533578eb83d1443e1857333255f5ac8868b", + "requires": [ + "136_Phase21D_IllustrationLibraryGenerationStudio" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceBookPipeline_GetByIDForUser", + "sha256": "11c558107e03c5417f42f4be43103d0941401bcbaba768b4986e6711584d8d22" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_ListByBookForUser", + "sha256": "a9257a568bf47e6c3767aff608a961ac2e69a9edafb9c43e0be4e96e4e1faa82" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "138_Phase21I_IntelligentIllustrationMatching", + "file": "138_Phase21I_IntelligentIllustrationMatching.sql", + "sha256": "e85bd2895069d394db21b6b4277f6689e83a1cd747a0fe1071d50ce1f80604f0", + "requires": [ + "137_Phase21H_BookLevelStoryIntelligenceImportSessions" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceIllustrationDemands", + "type": "U" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "139_Phase21J2_IllustrationMetadataBackfill", + "file": "139_Phase21J2_IllustrationMetadataBackfill.sql", + "sha256": "35ca5183c4314628269d3f4f7625df8212ad37b6621a936028c58afabc037771", + "requires": [ + "138_Phase21I_IntelligentIllustrationMatching" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "140_Phase21J3_DemandIllustrationStyleMarkers", + "file": "140_Phase21J3_DemandIllustrationStyleMarkers.sql", + "sha256": "0dcbd275d3f2b5a1c2f0ca9114eb96752a04ccf6b23ec6a9acb31f56cfc1a124", + "requires": [ + "139_Phase21J2_IllustrationMetadataBackfill" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "141_Phase21K_IllustrationAssignmentAuditFields", + "file": "141_Phase21K_IllustrationAssignmentAuditFields.sql", + "sha256": "a3041ad189613b25993cabfc0e7ba13d9ba88e4de3822468cadc5bebfdd55311", + "requires": [ + "140_Phase21J3_DemandIllustrationStyleMarkers" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceIllustrationDemands", + "type": "U" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "142_Phase21S_DurableStoryMemory", + "file": "142_Phase21S_DurableStoryMemory.sql", + "sha256": "a5cf0d109ae49d3f6fc8ab200f6662db467ff8180142304f082defd81c0c3dea", + "requires": [ + "141_Phase21K_IllustrationAssignmentAuditFields" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryMemoryImportPreferences", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryMemoryProcessedSceneResults", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryMemoryCharacters", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryMemoryCharacterAliases", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryMemoryCharacterAttributes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryMemoryLocations", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryMemoryAssets", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryMemoryRelationships", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryMemoryIllustrationAssignments", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryMemoryIllustrationDemands", + "type": "U" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "143_Phase21U_DevelopmentStoryIntelligenceReset", + "file": "143_Phase21U_DevelopmentStoryIntelligenceReset.sql", + "sha256": "2619b0447706a4c0369f1415976e4a35129120a16d2db5c92ac146be85182992", + "requires": [ + "142_Phase21S_DurableStoryMemory" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligence_DevelopmentAccountReset", + "sha256": "748ccaa4042c06b223d4d4fb2ed239fb78dd7a1a30745d2ba46068a30f8c4eff" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "144_Phase21V_StoryMemoryImportContext", + "file": "144_Phase21V_StoryMemoryImportContext.sql", + "sha256": "21b613442954fb57aecce4aabe1c13f1ad1427a9fff2f9c8395c6d5b6ef35ca2", + "requires": [ + "143_Phase21U_DevelopmentStoryIntelligenceReset" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryMemoryImportPreferences", + "type": "U" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "145_Phase22_CharacterIntelligenceProfiles", + "file": "145_Phase22_CharacterIntelligenceProfiles.sql", + "sha256": "c82b27625a620ee45207c89f44912d36d8c9db9a17c35ca855e74a75b3276aea", + "requires": [ + "144_Phase21V_StoryMemoryImportContext" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.CharacterIntelligenceProfiles", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.CharacterIntelligenceEvidenceEvents", + "type": "U" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "146_Phase22B_StoryIntelligenceKnownCharactersContext", + "file": "146_Phase22B_StoryIntelligenceKnownCharactersContext.sql", + "sha256": "a808b8f1daf37c469344dd0b4de5d8e79366a9b740ab34633aab028f45ad4a49", + "requires": [ + "145_Phase22_CharacterIntelligenceProfiles" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceRuns", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_QueueAdminText", + "sha256": "05d7a70e3bb74b1e4905d33ad36c1819146d86b9874bd971588e730e923f1349" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_ClaimNextPending", + "sha256": "3aee04d96e58b636ee9df2f6227f06196ff6ce44de797f4bd14248c9051e25f7" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "147_Phase22C_SafeIllustrationGenerationPolicy", + "file": "147_Phase22C_SafeIllustrationGenerationPolicy.sql", + "sha256": "18be53f951ff8032dd3d9a4eefd7f137920b301c5a9614d73b55ca58c70ec06f", + "requires": [ + "146_Phase22B_StoryIntelligenceKnownCharactersContext" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.IllustrationLibraryItems", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_List", + "sha256": "ce306b566d13e0cc1ac9969fd66172e6fdece34e47a90ab9f6bfa58bd0dbb81a" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_Summary", + "sha256": "54a50228ca05591e1b993f518027cb09de991fc400b737ec8caad30b6c6db235" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_UpsertPlanned", + "sha256": "abe034d02960a9ea5075c934761f5efe6823f6190e9ea8a9eb230f77d2b53564" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_Queue", + "sha256": "67a7462f173fccb2c3f94be16bf0edfec0d0bceda96451f5f6b015865ca5e473" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_ClaimNext", + "sha256": "3eeb2a252c06c6d6d23a98ed85835172aef3c8cfc0e56edd600414057b08716b" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_MarkGenerated", + "sha256": "85c993e46c49a5392e8549ec0eae09a008ea1c80ba52022c77c5322c44436e95" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_MarkFailed", + "sha256": "c31a98a129dd093da58943393ac7c1634bfbb49ba30958194f9425f2c8fd5ade" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_GetApproved", + "sha256": "b1f4c2d4c3cd3d0e5d0217569291f803791fa0a9b5ef9ed0fc8169bb05489d21" + }, + { + "kind": "module_sha256", + "name": "dbo.IllustrationLibraryItem_ArchiveGeneratedSet", + "sha256": "b631516b75afb6444cb44a0f65c12d9db4bed380b22b715451c76f85c9092918" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "148_Phase23_NameIntelligence", + "file": "148_Phase23_NameIntelligence.sql", + "sha256": "286de9390f6d051b996178314ec5a59a88859bb4793d3b0b1cbc5247c42d6e5f", + "requires": [ + "147_Phase22C_SafeIllustrationGenerationPolicy" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.NameLocales", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.GivenNames", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.NameRelationships", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.NameUsages", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.NameReferenceImports", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.NameReferenceImport_GetLatest", + "sha256": "f09b568a93e78cec0b844b286ec647eeb07ed3ad496820c63c9a950ba70139d1" + }, + { + "kind": "module_sha256", + "name": "dbo.NameReferenceImport_Start", + "sha256": "15944cc139fd2a3598b1e636d8767be105a6a31fd901c699bda910eff5109192" + }, + { + "kind": "module_sha256", + "name": "dbo.NameReferenceImport_Complete", + "sha256": "7ef22c8678e4603d76d31790fc437d6c4a1bbb9a3a22a477b28a675fd4e93cce" + }, + { + "kind": "module_sha256", + "name": "dbo.NameLocale_BulkUpsert", + "sha256": "7c7b89c4acb9c67b50e28273bd99232f141904f53331be00d3dea843ee5df9c7" + }, + { + "kind": "module_sha256", + "name": "dbo.GivenName_BulkUpsert", + "sha256": "88672d6779153a583a1a6f040f87a704d9f212e6b8542d374bbb15c3888be240" + }, + { + "kind": "module_sha256", + "name": "dbo.NameRelationship_BulkUpsert", + "sha256": "c3d3a50d13aef078066345eba7720f18727ae43ebc30a11519647d14b5f5518b" + }, + { + "kind": "module_sha256", + "name": "dbo.NameUsage_BulkUpsert", + "sha256": "29296d683eafd9a9f3f55cdc78edb30bfbf50b1c987101d1e481db2dcb9ae061" + }, + { + "kind": "module_sha256", + "name": "dbo.NameLocale_List", + "sha256": "c120a844faa91180085a63bccc10e3689f1924f73ec1f285d83d6eba9c165242" + }, + { + "kind": "module_sha256", + "name": "dbo.GivenName_Recognise", + "sha256": "6fd4af53ab0f349cddb4ae0ce42ff3fdbb8a1aaa1246c22fc0ce2430b3d28948" + }, + { + "kind": "module_sha256", + "name": "dbo.GivenName_Relationships", + "sha256": "d0ae606fd24636f9d1338effca94a773e13cd9754406e326b214981d3bd3a607" + }, + { + "kind": "module_sha256", + "name": "dbo.GivenName_Search", + "sha256": "d04708cabb74b557af1b21edbe0ed4e48a8310e3b3b49928799184bb72bceeab" + }, + { + "kind": "module_sha256", + "name": "dbo.GivenName_UsedDecorations", + "sha256": "c308b8e1dd5b522fc9f5539c99e81763055727af53df39d543d25555be5a1913" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "149_Phase24_LeanImportCompletionNotifications", + "file": "149_Phase24_LeanImportCompletionNotifications.sql", + "sha256": "7ce2bc3936040872b0a340a658ba4a631ad879e1e54e217127e7c17185d17beb", + "requires": [ + "148_Phase23_NameIntelligence" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceBookPipelines", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceBookPipeline_TryBeginCompletionNotification", + "sha256": "063edb59bf0e6fc56c3a82acb2f2d14378dc696a80d857b6383828b617b7fe41" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "149_Phase24_StructuralImportMarkerSync", + "file": "149_Phase24_StructuralImportMarkerSync.sql", + "sha256": "a7be1e11a780d1f802bb73ae8bbdd77a78c5fe665e19c06a108620f35f066f1a", + "requires": [ + "149_Phase24_LeanImportCompletionNotifications" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.OnboardingManuscriptBuilds", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ManuscriptStructuralChapterSources", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.ManuscriptStructuralChapterSource_Save", + "sha256": "7d1c619f5f6dc78e5c7477d55f4925812dd191bc05e00693997dc874a14888cb" + }, + { + "kind": "module_sha256", + "name": "dbo.Onboarding_ManuscriptBuild_MarkerSyncSent", + "sha256": "92253a13023ecf3d9f820edc10d11b6293320e73426a693c706d13647813016c" + }, + { + "kind": "module_sha256", + "name": "dbo.Onboarding_ManuscriptBuild_MarkerSyncCompleted", + "sha256": "c173d142800e9dad09c9f0bc5525b214934f2de60047d5b1da529a6aa306c36f" + }, + { + "kind": "module_sha256", + "name": "dbo.Onboarding_ManuscriptBuild_MarkerSyncFailed", + "sha256": "a5fac6fad616b00442b638ecfce3af374e260bed3b4918470c3c5b8e45e0f0ec" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceSource_ChapterText_GetAdmin", + "sha256": "309fbecf3f9e42bf9fd9f36ba73bd5e09e921c3ea693ffeca04fb5697dd68369" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "150_Phase24B_RemoveVisualisationIllustrationAssignments", + "file": "150_Phase24B_RemoveVisualisationIllustrationAssignments.sql", + "sha256": "c5301912c46aba4d8892c9623cb519abf6b3fb9edc7a467fd46ef59dc6b0b933", + "requires": [ + "149_Phase24_StructuralImportMarkerSync" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "150_Phase24B_SceneManuscriptSources", + "file": "150_Phase24B_SceneManuscriptSources.sql", + "sha256": "4805cc7954d889f75f6c0df335044dd531923a81988ce51b9e78649a0023be35", + "requires": [ + "150_Phase24B_RemoveVisualisationIllustrationAssignments" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.SceneManuscriptSources", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneManuscriptSource_Save", + "sha256": "cc1f8b78e51a8c5f5fda99cbdc95ee8e129c1fd8932cdbcc9f7e291cc20afd70" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneManuscriptSource_GetByScene", + "sha256": "13863e373e22df6a9a920b4e77527fe706c6be5a3c65af081e62e7a5713a1ecb" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneManuscriptSource_ListByChapter", + "sha256": "3758f09b58f05d2facd885b2094822d8dd029dd945b82dc1dd365336049792bd" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceSource_ChapterText_GetAdmin", + "sha256": "309fbecf3f9e42bf9fd9f36ba73bd5e09e921c3ea693ffeca04fb5697dd68369" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "151_BackfillDefaultSceneMetricValues", + "file": "151_BackfillDefaultSceneMetricValues.sql", + "sha256": "f1196aa42a09687e81878dec5c6e428d4a94e8e99c9b842b00af100b5b48ff02", + "requires": [ + "150_Phase24B_SceneManuscriptSources" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.SceneMetric_BackfillDefaultsForProject", + "sha256": "373ade3a4511fa23b09c215e69dfdc96411c7ed1de59f96f0c5f8096fb52e475" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "152_NameLibraryAllLocalesDefault", + "file": "152_NameLibraryAllLocalesDefault.sql", + "sha256": "19bce10d0fb6e935afda2e4821c8611eca31aade6476890f72c021c185899f65", + "requires": [ + "151_BackfillDefaultSceneMetricValues" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.GivenName_Search", + "sha256": "d04708cabb74b557af1b21edbe0ed4e48a8310e3b3b49928799184bb72bceeab" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "153_SelfHealingProjectMetricDefaults", + "file": "153_SelfHealingProjectMetricDefaults.sql", + "sha256": "1683f14013183e10ac5cc1ddc6591fef38ac92e5ffbce87a77372f63cb21bf35", + "requires": [ + "152_NameLibraryAllLocalesDefault" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.SceneMetricType_AddMissingDefaultsForProject", + "sha256": "5499069e53b3092980ddc4fb4fe8477b20fab8cdd9d6b8f447c4e226ff27dc82" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "154_Phase24C_CoreImportCharacterMappingAndSummaries", + "file": "154_Phase24C_CoreImportCharacterMappingAndSummaries.sql", + "sha256": "d1035a5567629982afdd3dea9f90bb2e231ff24c6a8a936cdd600e83baa720d9", + "requires": [ + "153_SelfHealingProjectMetricDefaults" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Scenes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.SceneCharacters", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneStructuralSummary_Save", + "sha256": "38c5dd91a09f75bbd236bd7691091f89717102d514db4fd63a14fb98db4eb6ac" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneManuscriptSource_ListByBook", + "sha256": "8903a5618ed0bde49a2201766eb448aae4bd7de999a57ea5bd8b77277ea1e845" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneCharacter_ListByScene", + "sha256": "6567229e32116002ecdbf7b7ccc3ae5111c1c48f2fc556bbf5dfc0e14e62ef5c" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneCharacter_Save", + "sha256": "7f9a89cbc27f20fbfae47804211e801c446c03683d0528fe1684002e25629803" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "155_Phase25_StoryIntelligenceNarrativeReview", + "file": "155_Phase25_StoryIntelligenceNarrativeReview.sql", + "sha256": "bbb42a65997685a082128ab7ae9cb064b489fad10772e7771dd5d547b638e50c", + "requires": [ + "154_Phase24C_CoreImportCharacterMappingAndSummaries" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceNarrativeCandidateEvidence", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryIntelligenceNarrativeCandidates", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceNarrativeCandidate_Save", + "sha256": "f14f3dff3180e0758e292e0b3ce6a4d3cb9d16116f314423337c9017d3de714d" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceNarrativeCandidateEvidence_Save", + "sha256": "b668bf1d6789bb31746f632c04d060fe1cdc87437731cfe5e46cd28035b7848f" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceNarrativeCandidate_ListByBook", + "sha256": "b8aabed022bd1552626c16df9659c187c3ea475e470fb55321270551dfec2cef" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceNarrativeCandidate_MarkReviewed", + "sha256": "e5b4ff9e763f3ce73c7f4f6ec53002b75d432b798b34288e0a57a3ed040a6bc5" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "156_Phase25A_NarrativeReviewPipelineConstraint", + "file": "156_Phase25A_NarrativeReviewPipelineConstraint.sql", + "sha256": "1d5e8292fdf0d14196cbcf1adc58203cd43b64aa9456733d1a423f197b103d36", + "requires": [ + "155_Phase25_StoryIntelligenceNarrativeReview" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceBookPipelines", + "type": "U" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "157_Phase25B_OnboardingBuildFirstSceneInsert", + "file": "157_Phase25B_OnboardingBuildFirstSceneInsert.sql", + "sha256": "20fdb92ab233b4540eb7f9ad50ff6ced39d218931526f55af769ca32e7d45ec1", + "requires": [ + "156_Phase25A_NarrativeReviewPipelineConstraint" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.Onboarding_ManuscriptBuild_Create", + "sha256": "2062eb4bbb84919d1b1b710a8e04e31e3b9c12a80f0a46369f41d47fc77b9f47" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "158_Phase25C_OnboardingMarkerSaveStates", + "file": "158_Phase25C_OnboardingMarkerSaveStates.sql", + "sha256": "d4d3a29f51630040629dafcf9aada37fb6f9a0b11f41abe119feeb55a90eb3cc", + "requires": [ + "157_Phase25B_OnboardingBuildFirstSceneInsert" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.Onboarding_ManuscriptBuild_GetByPreview", + "sha256": "29c46eb49f94769a32385fd1f99882af8723c053d192b6e3b762127d64aecf32" + }, + { + "kind": "module_sha256", + "name": "dbo.Onboarding_ManuscriptBuild_MarkerSyncCompleted", + "sha256": "c173d142800e9dad09c9f0bc5525b214934f2de60047d5b1da529a6aa306c36f" + }, + { + "kind": "module_sha256", + "name": "dbo.Onboarding_ManuscriptBuild_MarkerSyncUserSaveRequired", + "sha256": "5aa04f13338edb5be028ef60baf4fa5a0d1c85bb14185123ea46fbcff150d134" + }, + { + "kind": "module_sha256", + "name": "dbo.Onboarding_ManuscriptBuild_MarkerSyncFailed", + "sha256": "a5fac6fad616b00442b638ecfce3af374e260bed3b4918470c3c5b8e45e0f0ec" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "159_Phase25D_ManuscriptSourceHardDeleteCascades", + "file": "159_Phase25D_ManuscriptSourceHardDeleteCascades.sql", + "sha256": "7c265180fa2d33ddfe03ea86051b52274633a9818c7c991d37582cf283ba4fb1", + "requires": [ + "158_Phase25C_OnboardingMarkerSaveStates" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.SceneManuscriptSources", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ManuscriptStructuralChapterSources", + "type": "U" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "160_Phase25E_ProjectHardDeleteDependencyCleanup", + "file": "160_Phase25E_ProjectHardDeleteDependencyCleanup.sql", + "sha256": "7a21c4b3bb07ba5af3b81d9c7de3d21841b9c1b50f4cf503d3a432911903a12a", + "requires": [ + "159_Phase25D_ManuscriptSourceHardDeleteCascades" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.ProjectHardDelete_PrepareDependencies", + "sha256": "1fcb8229e6dedc6ab0f52672fcd061d097eeab67acfc336f5ba5fe2e0f3a7063" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "161_Phase25F_CanonicalSceneSourceStoryIntelligence", + "file": "161_Phase25F_CanonicalSceneSourceStoryIntelligence.sql", + "sha256": "8d7cf115f3766826d45bec6cc08d42580f0ebe54d336cbf8a6960a0fbb956e83", + "requires": [ + "160_Phase25E_ProjectHardDeleteDependencyCleanup" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.SceneManuscriptSource_ListByChapter", + "sha256": "3758f09b58f05d2facd885b2094822d8dd029dd945b82dc1dd365336049792bd" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneManuscriptSource_ListByBook", + "sha256": "8903a5618ed0bde49a2201766eb448aae4bd7de999a57ea5bd8b77277ea1e845" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "162_Phase25G_CoreImportSceneTitles", + "file": "162_Phase25G_CoreImportSceneTitles.sql", + "sha256": "760c5d3d80850a533286ddf95d79d4d3186ffc94a1f3affec46872bcdc0e91ed", + "requires": [ + "161_Phase25F_CanonicalSceneSourceStoryIntelligence" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Scenes", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_Save", + "sha256": "0fb556b707d9d6988afb381854e9d739a4f375dbe3a10db8c1d5b2530862b5fb" + }, + { + "kind": "module_sha256", + "name": "dbo.Onboarding_ManuscriptBuild_Create", + "sha256": "2062eb4bbb84919d1b1b710a8e04e31e3b9c12a80f0a46369f41d47fc77b9f47" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneManuscriptSource_ListByChapter", + "sha256": "3758f09b58f05d2facd885b2094822d8dd029dd945b82dc1dd365336049792bd" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneManuscriptSource_ListByBook", + "sha256": "8903a5618ed0bde49a2201766eb448aae4bd7de999a57ea5bd8b77277ea1e845" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "163_Phase25H_BookContextAndLeanImportFlow", + "file": "163_Phase25H_BookContextAndLeanImportFlow.sql", + "sha256": "0b460144f305844c256652d7f128cc1bbca5ee84e055794df94d70edb99f2d8d", + "requires": [ + "162_Phase25G_CoreImportSceneTitles" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.Book_ListByProject", + "sha256": "86fde3df5d3d483bb7df5be416a27cee0f4e9df279262f3bd5264672cf536ede" + }, + { + "kind": "module_sha256", + "name": "dbo.Book_ListByProjects", + "sha256": "5f0ffa9e896a054613f26f77f0e2bd04e2a77afbd6fdbc10acc0a886fb33dd3c" + }, + { + "kind": "module_sha256", + "name": "dbo.Book_Get", + "sha256": "a51e34b8ee4066c7c518e1c78f4e74b7a2c9b5a34ec911e2dc6ae2cbfc11701b" + }, + { + "kind": "module_sha256", + "name": "dbo.Book_Save", + "sha256": "e89705c9502cf0450ce202e6bece8efe73095fff3ad43c19c007c5fb8e5372ef" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "164_Phase25I_SceneTextStatistics", + "file": "164_Phase25I_SceneTextStatistics.sql", + "sha256": "f251565ecce2acee000e986f989eab9ab329e80b204bf6f7402b934c9c70c507", + "requires": [ + "163_Phase25H_BookContextAndLeanImportFlow" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.SceneTextStatistics", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneTextStatistics_Save", + "sha256": "1a06ab9b2dcba814c5d498b10e7f6d4646de276fd27beb8581d0bd1065e057cd" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneTextStatistics_GetByScene", + "sha256": "2a66cf691b680857ff02dac0b746881644497d9ef9f8bca63603ab88ade78553" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneTextStatistics_ListByChapter", + "sha256": "185fda3e6b900910946b8277d4ce3d92c23caa39a21731cf3e111eca34c07e70" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneTextStatistics_ListMissingByBook", + "sha256": "06f8d5b563b5108db1f7e96482e5eab9bc4de4c7f27d6565c5612400f8af069f" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "165_Phase26A_PovAndCharacterIdentityFoundation", + "file": "165_Phase26A_PovAndCharacterIdentityFoundation.sql", + "sha256": "92a7e92e48fe4ef8376d8e401e3d439bbfff5c3b9e6f52c1ad507644d289c65d", + "requires": [ + "164_Phase25I_SceneTextStatistics" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Chapters", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.Scenes", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.Chapter_ListByBook", + "sha256": "8d60a83287f76c8fce4378ce67f98160c3ed7d943029e7a09e274b03954d4530" + }, + { + "kind": "module_sha256", + "name": "dbo.Chapter_Get", + "sha256": "a5b240019eddaf7827883ed00482e923cdae8a3cfe534700acafed1359af7457" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_ListByChapter", + "sha256": "38f864ecad3b60b7ee0defc92b0143bbf36754ad56fc143d24cca4c72485fd33" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_Get", + "sha256": "66d948905bb558ac557dddc6a6d58ae70790828a49988a52c40dc432229cbe08" + }, + { + "kind": "module_sha256", + "name": "dbo.Chapter_Save", + "sha256": "40f8e3f32732d08ee8e919af271c8aa34d2e41b60cb9fb095004290eecddc221" + }, + { + "kind": "module_sha256", + "name": "dbo.Chapter_UpdatePovCharacter", + "sha256": "c4ce35ec59c0091a4fffbeba31b0eb70724fa7f658d551c77269fc94fa1e5a7e" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_Save", + "sha256": "0fb556b707d9d6988afb381854e9d739a4f375dbe3a10db8c1d5b2530862b5fb" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_UpdatePovCharacter", + "sha256": "e8536dc2a44adffe03eb8562f029721eb087a01aa6c3bcbc9421726db6786524" + }, + { + "kind": "module_sha256", + "name": "dbo.Chapter_SetScenesPov", + "sha256": "2db4cc1dbd9e006cfbe08e581d136b931925e5336e49dc72966348a7f123fe4b" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_Merge", + "sha256": "ebad5a0a78b31393d5239768b9e9eefdeca1c452c93a937c418f3a21a73f14db" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "166_Phase26B_StructuralPovAudit", + "file": "166_Phase26B_StructuralPovAudit.sql", + "sha256": "f9749fb02d913abe052b148904ffad7ee443098a429c2a66fa3910f1b57ac11f", + "requires": [ + "165_Phase26A_PovAndCharacterIdentityFoundation" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.ManuscriptStructuralChapterSources", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.ManuscriptStructuralChapterSource_Save", + "sha256": "7d1c619f5f6dc78e5c7477d55f4925812dd191bc05e00693997dc874a14888cb" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "167_Phase26C_CanonicalStoryIntelligenceContext", + "file": "167_Phase26C_CanonicalStoryIntelligenceContext.sql", + "sha256": "b6958fba923065884cdf0960c5d7bb6c93b0227ad2a14226b0ed86de9032985c", + "requires": [ + "166_Phase26B_StructuralPovAudit" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Scenes", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneStructuralSummary_Save", + "sha256": "38c5dd91a09f75bbd236bd7691091f89717102d514db4fd63a14fb98db4eb6ac" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_ListByChapter", + "sha256": "38f864ecad3b60b7ee0defc92b0143bbf36754ad56fc143d24cca4c72485fd33" + }, + { + "kind": "module_sha256", + "name": "dbo.Scene_Get", + "sha256": "66d948905bb558ac557dddc6a6d58ae70790828a49988a52c40dc432229cbe08" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneManuscriptSource_ListByChapter", + "sha256": "3758f09b58f05d2facd885b2094822d8dd029dd945b82dc1dd365336049792bd" + }, + { + "kind": "module_sha256", + "name": "dbo.SceneManuscriptSource_ListByBook", + "sha256": "8903a5618ed0bde49a2201766eb448aae4bd7de999a57ea5bd8b77277ea1e845" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "168_Phase26D_NarrativeCandidateHierarchy", + "file": "168_Phase26D_NarrativeCandidateHierarchy.sql", + "sha256": "125a7eef3bca58169eb794f00f5aa5370c3825f6d4720c2d639cc875e5fd4f14", + "requires": [ + "167_Phase26C_CanonicalStoryIntelligenceContext" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceNarrativeCandidates", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceNarrativeCandidate_Save", + "sha256": "f14f3dff3180e0758e292e0b3ce6a4d3cb9d16116f314423337c9017d3de714d" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceNarrativeCandidate_ListByBook", + "sha256": "b8aabed022bd1552626c16df9659c187c3ea475e470fb55321270551dfec2cef" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceNarrativeCandidate_MarkReviewed", + "sha256": "e5b4ff9e763f3ce73c7f4f6ec53002b75d432b798b34288e0a57a3ed040a6bc5" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "169_Phase26E_StoryIntelligenceConcurrentExecution", + "file": "169_Phase26E_StoryIntelligenceConcurrentExecution.sql", + "sha256": "7fa30a444acaca0856cf821f90a0797be279cd5fb8d463b369f30237fb3daa7a", + "requires": [ + "168_Phase26D_NarrativeCandidateHierarchy" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_ClaimNextPendingFair", + "sha256": "de36eae3cd7280d786ee37f03e2bea2dee67143b7fe3e5860af36e781d89534f" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_ListActiveBookSummaryForUser", + "sha256": "4658152ad6ef68b8f89a45285598386ff825db41c5dd2cf8fbeb9305a256341f" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "170_Phase26F_StoryIntelligenceWholeRunProgress", + "file": "170_Phase26F_StoryIntelligenceWholeRunProgress.sql", + "sha256": "cd0468c224aaf4bb729a34cc0de539bb2d73aa115c3133ddc209e8de0103dbb9", + "requires": [ + "169_Phase26E_StoryIntelligenceConcurrentExecution" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_ListActiveBookSummaryForUser", + "sha256": "4658152ad6ef68b8f89a45285598386ff825db41c5dd2cf8fbeb9305a256341f" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "171_Phase26G_StoryIntelligenceAuthoritativeGlobalProgress", + "file": "171_Phase26G_StoryIntelligenceAuthoritativeGlobalProgress.sql", + "sha256": "93f7fe23e7ba3a75710a113e1542fa7a86c473bf4c8d39ee70962b5e3dbd9cb4", + "requires": [ + "170_Phase26F_StoryIntelligenceWholeRunProgress" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_ListActiveBookSummaryForUser", + "sha256": "4658152ad6ef68b8f89a45285598386ff825db41c5dd2cf8fbeb9305a256341f" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "172_Phase26H_StoryIntelligenceSceneAnalysisCompletionBarrier", + "file": "172_Phase26H_StoryIntelligenceSceneAnalysisCompletionBarrier.sql", + "sha256": "e02fc1e2e59d44783e693eddf53f46fd58a00e5ae3d3a752692b5d8b17dce228", + "requires": [ + "171_Phase26G_StoryIntelligenceAuthoritativeGlobalProgress" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceBookPipeline_TryCompleteSceneAnalysis", + "sha256": "6025fd197a784e88563578e21148f34a9926617066444bf17156aa827b2f51c3" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceBookPipeline_TryCompleteNextReadySceneAnalysis", + "sha256": "f4a1c658fe54bae1428ab3db5a66f36397a610a3eb0ca968a24ad08224424ff3" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "173_Phase26I_StoryIntelligenceModernMaterialisation", + "file": "173_Phase26I_StoryIntelligenceModernMaterialisation.sql", + "sha256": "2c2acbf178d312270c08a366b66c4d1d5f537208d6e2ffe183aeb2f6c001529f", + "requires": [ + "172_Phase26H_StoryIntelligenceSceneAnalysisCompletionBarrier" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceBookPipeline_FindNextReadySceneAnalysis", + "sha256": "9f7d9a78f8aa8351608bb7b11204de961e4179c9ab5136e7b36b405d7ccc3283" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "174_Phase27_WholeBookPlotIntelligence", + "file": "174_Phase27_WholeBookPlotIntelligence.sql", + "sha256": "a70cc435e8f5c29a98922422a7b7383276af692524f2c926e0635d2b5dd771de", + "requires": [ + "173_Phase26I_StoryIntelligenceModernMaterialisation" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.AuthorPlotSeeds", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WholeBookPlotSynthesisRuns", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryIntelligenceNarrativeCandidates", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryIntelligenceNarrativeCandidateEvents", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ThreadEvents", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.AuthorPlotSeed_SaveForBook", + "sha256": "2bc454f37a26ed394f298c0c9592a3a266577f721b652ad2a66601c6fa00829d" + }, + { + "kind": "module_sha256", + "name": "dbo.AuthorPlotSeed_ListByBook", + "sha256": "b22c3d7a2041aa90c44cb288b2ed66b89837624b85600343565301728c3a2103" + }, + { + "kind": "module_sha256", + "name": "dbo.WholeBookPlotSynthesisRun_Queue", + "sha256": "f734a3b3795f5a8f76fd571a65b5a8729bb9bf4fb3301b71e2fa9bf07ec81346" + }, + { + "kind": "module_sha256", + "name": "dbo.WholeBookPlotSynthesisRun_Retry", + "sha256": "adedd5d093fce3d6b7d48a6ed69c2b6575ad6559c3b43b517a239a2006392ca1" + }, + { + "kind": "module_sha256", + "name": "dbo.WholeBookPlotSynthesisRun_ClaimNext", + "sha256": "f100fed79fb9aaf955867d40ffad704da5199dbd203203b5014d9b8eca9c4e5a" + }, + { + "kind": "module_sha256", + "name": "dbo.WholeBookPlotSynthesisRun_GetCurrentByBook", + "sha256": "6ba04ff44c549c2a9a4de7e6bf3a6c92874075d501d0d29a441cc92f78d61dc2" + }, + { + "kind": "module_sha256", + "name": "dbo.WholeBookPlotSynthesisRun_Complete", + "sha256": "8fe97c9b5c1be0152e60b5ca937e1cefb3d4e1118e6ce8c380c32e7dd257d1c4" + }, + { + "kind": "module_sha256", + "name": "dbo.WholeBookPlotSynthesisRun_Fail", + "sha256": "ccbfbbc49a55e04cac8e06b532093766fdf3b2ea9e0579ee95fb15bd157ec906" + }, + { + "kind": "module_sha256", + "name": "dbo.WholeBookPlotSynthesis_ContextGet", + "sha256": "45ba3dcf8967eac5b48efa093e59021a620e0ba38277eaf311a8aa28fbefc34c" + }, + { + "kind": "module_sha256", + "name": "dbo.WholeBookPlotSynthesisCandidate_Save", + "sha256": "13e717e7d3df71241ba1a4f27841dbf8ff3fa6c97bb0fe6653eda3c8b895d672" + }, + { + "kind": "module_sha256", + "name": "dbo.WholeBookPlotSynthesisCandidateEvent_Save", + "sha256": "4e9d5fb7a239fc42fc1a1ac8cb54509daa37a73f2c51311efb47ac76324f0681" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceNarrativeCandidate_Save", + "sha256": "f14f3dff3180e0758e292e0b3ce6a4d3cb9d16116f314423337c9017d3de714d" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceNarrativeCandidate_ListByBook", + "sha256": "b8aabed022bd1552626c16df9659c187c3ea475e470fb55321270551dfec2cef" + }, + { + "kind": "module_sha256", + "name": "dbo.ThreadEvent_Save", + "sha256": "cfc517f0d6253dec1bb588f1e77fcc21b2443000cb9e2dc9d8858a47d89f333d" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "175_Phase27B_StoryIntelligenceIndependentReviewState", + "file": "175_Phase27B_StoryIntelligenceIndependentReviewState.sql", + "sha256": "891092e49d9995d484c39f9941ff4b75778d2954d5e0f21c220068f0fa5766a1", + "requires": [ + "174_Phase27_WholeBookPlotIntelligence" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceBookPipelines", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceBookPipeline_GetByBook", + "sha256": "18276a32ef8c294bd5768fbc0552aadcc9e3dc457beb3974d91064ffa71ff9cb" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceBookPipeline_Upsert", + "sha256": "ecf42327944210e15b9d7bc809e938546efbf51681a2275b92c7b0f08f2cb3cc" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceBookPipeline_GetByBookForUser", + "sha256": "c12529fa7660d14bfa9ade2832076c19fb7be0d108134548da51c89c30014b71" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceBookPipeline_GetByIDForUser", + "sha256": "11c558107e03c5417f42f4be43103d0941401bcbaba768b4986e6711584d8d22" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceBookPipeline_ListForUser", + "sha256": "279d736545036d75bac323d1be0e93c7c1a7a88147e05953045d056301522106" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "176_Phase27C_StoryIntelligenceReviewCentreSummary", + "file": "176_Phase27C_StoryIntelligenceReviewCentreSummary.sql", + "sha256": "ac82b3e549a1baa148dc9890ea0fb5db90b3136fc4c421666b56a228b48d9c92", + "requires": [ + "175_Phase27B_StoryIntelligenceIndependentReviewState" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceReviewCentre_GetSummary", + "sha256": "2e8bf00b6a1593a181fe50b3417ca3be4f41d80915fec557f0701473482d2316" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "177_Phase27D_StoryIntelligencePersistedReviewCandidates", + "file": "177_Phase27D_StoryIntelligencePersistedReviewCandidates.sql", + "sha256": "02c70edfc03249e592c237709137bca155a67f542ca021a574b84a4a7b46bc04", + "requires": [ + "176_Phase27C_StoryIntelligenceReviewCentreSummary" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceReviewCandidateGenerations", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryIntelligenceReviewCandidates", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryIntelligenceReviewCandidateEvidence", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceReviewCandidateGeneration_Begin", + "sha256": "1c9cc0457f5e9aa2b799c495abfb4364e3c7837f012102e51302177d53b5b260" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceReviewCandidate_Save", + "sha256": "5c89eaf71066b6d0ed54e39b737a95dfdb976a8636f5aa6d6e9cc0c6a2e22600" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceReviewCandidateEvidence_Save", + "sha256": "0b07566d2d6c4d989e1210e10bd5f5b09dd233f6235aaeba65c46c6fb6dea5e9" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceReviewCandidateGeneration_Complete", + "sha256": "889f43042814eb3aee0d42ddd382ec141df53b9257192f2e2b055019156b3d84" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceReviewCandidateGeneration_Fail", + "sha256": "1573bd3d8c2b0c0612f024d9fc05163f2f3d2727b2dc62d8f5ceb9159d700b6b" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceReviewCandidateGeneration_GetCurrent", + "sha256": "a4688227da9d6586930a019b8110bedda570257c528def2bcdcf2fcaf2bc533d" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceReviewCandidate_ListPage", + "sha256": "eca3ecd5e666bf6d22cd6ef4987994b18954d2bd43f67eae43ef302d16e9821a" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceReviewCandidate_MarkReviewed", + "sha256": "0f04a895ba103a1dbde0b3445819fb3c524176bf63d77c738fbb7e7d12384762" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceReviewCandidate_ResetBook", + "sha256": "04b5277a7ac27ad46c1f8b76cda9cc9cdf36b35d630595c4d71ccf805113d655" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "178_Phase27E_ReviewCentreMetricSummary", + "file": "178_Phase27E_ReviewCentreMetricSummary.sql", + "sha256": "b4262b62ede20800cbd1c4cf67adbfe62a08fdafa04bde59e636eb8db10639aa", + "requires": [ + "177_Phase27D_StoryIntelligencePersistedReviewCandidates" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceReviewCentre_GetSummary", + "sha256": "2e8bf00b6a1593a181fe50b3417ca3be4f41d80915fec557f0701473482d2316" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "179_Phase27F_ReviewCentreCandidateLifecycleSummary", + "file": "179_Phase27F_ReviewCentreCandidateLifecycleSummary.sql", + "sha256": "fb80b0dcc3de07a5c4f2d95bb62077af80e8be6d26ed6d82fde05fea2e8e83d5", + "requires": [ + "178_Phase27E_ReviewCentreMetricSummary" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceReviewCentre_GetSummary", + "sha256": "2e8bf00b6a1593a181fe50b3417ca3be4f41d80915fec557f0701473482d2316" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "180_Phase27G_EntityPreferredNameAliases", + "file": "180_Phase27G_EntityPreferredNameAliases.sql", + "sha256": "134ef5d114d5bed45f5775f0299ad057cd4976acc32c0a551145fd3266d4c985", + "requires": [ + "179_Phase27F_ReviewCentreCandidateLifecycleSummary" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.CharacterAlias_Add", + "sha256": "001a1900db3609468b1d48c64257ced1c46705390c4762552bf00de022838632" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterAlias_Update", + "sha256": "adeb096f5a35fe4a05cfda4c12237a67b8efae8a11115d9336b058800f292ff0" + }, + { + "kind": "module_sha256", + "name": "dbo.LocationAlias_Add", + "sha256": "76300c7e5ffd154689d630b0352f2bda3b54684b3ff91e19ef3b5152b48ffff3" + }, + { + "kind": "module_sha256", + "name": "dbo.LocationAlias_Update", + "sha256": "cf341db2a3070184067602ad183604de9d949870dff164e5726d9a760b270fb4" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_SetPreferredName", + "sha256": "f2889d280bcf1c57e35c0d6ac0ab3cb279ed04b8932074b4536688b6afbfbe13" + }, + { + "kind": "module_sha256", + "name": "dbo.Location_SetPreferredName", + "sha256": "c16338ed771dda85e9d6da99cb8b36c8f0c859315fd44e8f19e1f5b7b19506e3" + }, + { + "kind": "module_sha256", + "name": "dbo.Character_Save", + "sha256": "a3f0dd48692bda0d4f7a728001d4fac1e931502b7c2e50a080ff1fa4600d342a" + }, + { + "kind": "module_sha256", + "name": "dbo.Location_Save", + "sha256": "2da83c20f059677e586cd5436f4abfec065e6f55a874a8af113ad57496a594fd" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "181_Phase27H_CoreImportBasicLocationReview", + "file": "181_Phase27H_CoreImportBasicLocationReview.sql", + "sha256": "0b3744c8767af3c59a121f3b46739c959e95529870ddc2a085ea4e47097299dc", + "requires": [ + "180_Phase27G_EntityPreferredNameAliases" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.CoreImportBasicLocationReviews", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.CoreImportBasicLocationCandidates", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.CoreImportBasicLocationEvidence", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.CoreImportBasicLocationReview_GetByPreview", + "sha256": "ac9da8c89306a061239ad589aa25f33d2786c5be04394f87d60af67de4e28dba" + }, + { + "kind": "module_sha256", + "name": "dbo.CoreImportBasicLocationReview_Create", + "sha256": "7e6b27ab0e9af7912023411f862f984d06681e7796813e106e20903dedf709f9" + }, + { + "kind": "module_sha256", + "name": "dbo.CoreImportBasicLocationReview_SaveCandidate", + "sha256": "b6d07257e589ff5addf0801aa93be56ba0477e8e9edea62f9f6a2be7bf36c0f1" + }, + { + "kind": "module_sha256", + "name": "dbo.CoreImportBasicLocationReview_SaveEvidence", + "sha256": "af739af6b51d35622ca2922bbe3ab010a2235fa85a4653ebc6ecc608f7e32742" + }, + { + "kind": "module_sha256", + "name": "dbo.CoreImportBasicLocationReview_DeleteEvidence", + "sha256": "cd8f0613f0c71f7ad9e270345f0e22e49c9db84cdde09b18c78624b882dc41a9" + }, + { + "kind": "module_sha256", + "name": "dbo.CoreImportBasicLocationReview_CompletePreparation", + "sha256": "b42d4da534e213c85037be3ee7585acba5e2404fc631d73470558ea0de1bdc60" + }, + { + "kind": "module_sha256", + "name": "dbo.CoreImportBasicLocationReview_ListCandidates", + "sha256": "9814360140ef1453c9689d9f42e2815a8c0ae9f465bfd66e29e0e2b63a837ded" + }, + { + "kind": "module_sha256", + "name": "dbo.CoreImportBasicLocationReview_SaveDecision", + "sha256": "fe89027d01ca8af467b866b2a3d43bd5cdcbb02ef3a0f87230ad95f053e526dc" + }, + { + "kind": "module_sha256", + "name": "dbo.CoreImportBasicLocationReview_SetResult", + "sha256": "546429861827db7cebbe351c17978a24666409bc1ce8f064d60c97c8cff157e8" + }, + { + "kind": "module_sha256", + "name": "dbo.CoreImportBasicLocationReview_MarkComplete", + "sha256": "4288120b9f2893304ecd2bc3c325bc802ecfc3331a81b2372255d16dc420aac5" + }, + { + "kind": "module_sha256", + "name": "dbo.CoreImportBasicLocationReview_MarkSkipped", + "sha256": "01210cdc448946b77ef607357c2a83e2313f6c794cbce3e5d34be9dbe0570935" + }, + { + "kind": "module_sha256", + "name": "dbo.LocationAlias_ListByProject", + "sha256": "f5a43e12c310310352a3eeb4b26c6ee18e4180d14982604ced2f21311ed5815f" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "182_Phase27I_CoreImportBasicLocationDevReset", + "file": "182_Phase27I_CoreImportBasicLocationDevReset.sql", + "sha256": "0127e3e0ceaa413ca614216e9a6e3a7de2c09649d0bde8e21e11d8b1cb046f6b", + "requires": [ + "181_Phase27H_CoreImportBasicLocationReview" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.CoreImportBasicLocationReview_ResetByPreview", + "sha256": "2e99852cb50c62d63e48e86ca984fc7de4ba35e9de584448c86517767fb1e353" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "183_Phase27J_CharacterEnrichmentRuns", + "file": "183_Phase27J_CharacterEnrichmentRuns.sql", + "sha256": "fef8d2b1439bee76d9bed534df3288f8436b83ee5bc63f76c571caa72761e0e0", + "requires": [ + "182_Phase27I_CoreImportBasicLocationDevReset" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.CharacterEnrichmentRuns", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.CharacterEnrichmentEvidence", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterEnrichmentRun_Queue", + "sha256": "e9579b17b183744a1964d61afe2a19b4c4db79cfa5aef0fc868ab4131e9bf100" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterEnrichmentRun_Retry", + "sha256": "adeedbb5e3f163defdc6d80d0af6ebd64c23cf96b423065817205f41956c25dd" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterEnrichmentRun_ClaimNext", + "sha256": "b3b18c33610aad4d13f9c4838570f7c845e46e385c6c0b4e948388d2c5779a21" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterEnrichmentRun_GetCurrentByBook", + "sha256": "3e742e7db7471b7512d20fcb79257d8877cce28c45e67aec519539a01972175c" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterEnrichmentRun_UpdateProgress", + "sha256": "cad6afcf2b6e026965fff5ccebee72e7a9093da3459d855e701e7558914dfaaa" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterEnrichment_ContextGet", + "sha256": "b4a431909330e7aa9b7d7e2c20d4aabeaa7ec2f906d39a256f6baa176cf24e81" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterEnrichmentRun_Complete", + "sha256": "4da4b9928d14d598e3b3c29c48f1d5d0f37a030e52543db12a9155458339c82e" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterEnrichmentRun_Fail", + "sha256": "3724683204bad952358f0ab6cf3db0d70fd4777fde454b184892fcd1593d0676" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "184_Phase27K_ProjectHardDeleteReviewCentreCleanup", + "file": "184_Phase27K_ProjectHardDeleteReviewCentreCleanup.sql", + "sha256": "6a860acffcf2e25266a2e3cf38b83394ee8bf46f48de2169bb8212ebb61e59c5", + "requires": [ + "183_Phase27J_CharacterEnrichmentRuns" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.ProjectHardDelete_PrepareDependencies", + "sha256": "1fcb8229e6dedc6ab0f52672fcd061d097eeab67acfc336f5ba5fe2e0f3a7063" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "185_Phase27L_ManualCharacterEnrichment", + "file": "185_Phase27L_ManualCharacterEnrichment.sql", + "sha256": "0e30cf37d1d1c40fe42a3a7813b9e9b0d83ff1aac7760b90ec68c1cde9e9a17d", + "requires": [ + "184_Phase27K_ProjectHardDeleteReviewCentreCleanup" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.CharacterEnrichmentRuns", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterEnrichmentRun_QueueCharacter", + "sha256": "fdd26c7b80c95d42bca377ee0daa2b3bd0ac43a362ec7d2c7c66803db97624f5" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterEnrichmentRun_Retry", + "sha256": "adeedbb5e3f163defdc6d80d0af6ebd64c23cf96b423065817205f41956c25dd" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterEnrichmentRun_GetCurrentByBook", + "sha256": "3e742e7db7471b7512d20fcb79257d8877cce28c45e67aec519539a01972175c" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterEnrichmentRun_GetCurrentByCharacter", + "sha256": "5db04fcdef69033cf8a0b58665835ae5cbfd7a2e79690753ce0c75e21206cda1" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterEnrichment_ContextGet", + "sha256": "b4a431909330e7aa9b7d7e2c20d4aabeaa7ec2f906d39a256f6baa176cf24e81" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterEnrichmentCharacterStatus_Get", + "sha256": "61c1323b268e83f88028b2cb8d7bf27f605594b9daff923abd7f8e68c883916d" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "186_Phase27M_AuthoritativeGlobalProgressCompletedScenes", + "file": "186_Phase27M_AuthoritativeGlobalProgressCompletedScenes.sql", + "sha256": "6db560862b298135446b62867548353e41ecfdb59eb6daed1f32a133a95c46c1", + "requires": [ + "185_Phase27L_ManualCharacterEnrichment" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRun_ListActiveBookSummaryForUser", + "sha256": "4658152ad6ef68b8f89a45285598386ff825db41c5dd2cf8fbeb9305a256341f" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "187_Phase27N_CharacterEnrichmentEvidenceValueLength", + "file": "187_Phase27N_CharacterEnrichmentEvidenceValueLength.sql", + "sha256": "6ecbca9b20b1d1213341121ebafa227df4d08d207e5a429771ab5863ccce2ff4", + "requires": [ + "186_Phase27M_AuthoritativeGlobalProgressCompletedScenes" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.CharacterEnrichmentEvidence", + "type": "U" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "188_Phase27O_CharacterEnrichmentStructuredFacts", + "file": "188_Phase27O_CharacterEnrichmentStructuredFacts.sql", + "sha256": "40141b169fb445306a394cf68273eba95a33f4466101eba75df4993f75c50504", + "requires": [ + "187_Phase27N_CharacterEnrichmentEvidenceValueLength" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.CharacterEnrichmentRun_ClaimNext", + "sha256": "b3b18c33610aad4d13f9c4838570f7c845e46e385c6c0b4e948388d2c5779a21" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterEnrichmentRun_Complete", + "sha256": "4da4b9928d14d598e3b3c29c48f1d5d0f37a030e52543db12a9155458339c82e" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterEnrichmentCharacterStatus_Get", + "sha256": "61c1323b268e83f88028b2cb8d7bf27f605594b9daff923abd7f8e68c883916d" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "189_Phase27P_BackfillDateOfBirthFromAgeEvidence", + "file": "189_Phase27P_BackfillDateOfBirthFromAgeEvidence.sql", + "sha256": "fb3286b844b50c6f66225015d58e811227b07d70aa02140d0edadf22aed92f88", + "requires": [ + "188_Phase27O_CharacterEnrichmentStructuredFacts" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "190_Phase27Q_CharacterEnrichmentClaimIsolation", + "file": "190_Phase27Q_CharacterEnrichmentClaimIsolation.sql", + "sha256": "3e0b34225816a0932958970afd47a365741afaf7ade78c14015b7406a7e6d2ab", + "requires": [ + "189_Phase27P_BackfillDateOfBirthFromAgeEvidence" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.CharacterEnrichmentRun_ClaimNext", + "sha256": "b3b18c33610aad4d13f9c4838570f7c845e46e385c6c0b4e948388d2c5779a21" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "191_StoryPointHistory", + "file": "191_StoryPointHistory.sql", + "sha256": "d5960e16f68307ed48b47a9c2aa94792929bedbab7be8a98b65b88f840e9f302", + "requires": [ + "190_Phase27Q_CharacterEnrichmentClaimIsolation" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.StoryPoint_GetHistory", + "sha256": "e55355cb663cda435253b3ba1fa9e50998cdc8aebeee943745939d21c3d00cdf" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "192_LocationNarrativeSignificance", + "file": "192_LocationNarrativeSignificance.sql", + "sha256": "287985630fccd50a36a197326f265f7e79229f9c34fdb0f865f274a2bc57eba8", + "requires": [ + "191_StoryPointHistory" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceLocationReview_List", + "sha256": "9b0cca72f0da93bb910f40cfd7e85e8ddcd7fca3227afc893de3b6d09fef3789" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceLocationReview_BackfillSignificance", + "sha256": "88ab78dbe6d378dd296a16e113db104ee2d8a71515f74bf47395d79e78ce4a39" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceReviewCentre_GetSummary", + "sha256": "2e8bf00b6a1593a181fe50b3417ca3be4f41d80915fec557f0701473482d2316" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "193_LocationAndAssetMerge", + "file": "193_LocationAndAssetMerge.sql", + "sha256": "a43f06cfac417f7180eaab7849ac30c1c8d77a412cd083ec9fce8c8e8ee6dff6", + "requires": [ + "192_LocationNarrativeSignificance" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.Location_Merge", + "sha256": "5bc8485c2ff88778b175efd31577a92f1200851b674c276221d23f88ee0e2412" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryAsset_Merge", + "sha256": "4c5436e58c992664a3d7aebf62be008ecbff8394bf5da49b3f1649d984a02523" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "194_ProjectActivityMergeType", + "file": "194_ProjectActivityMergeType.sql", + "sha256": "fed5912f3563386fea98434fc5cd3ae85804ccb8a3a52d74f59840ba34d1997e", + "requires": [ + "193_LocationAndAssetMerge" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.ProjectActivity", + "type": "U" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "195_LocationReparent", + "file": "195_LocationReparent.sql", + "sha256": "6c9429831fdadf5c983ac60814890c8f5cf348c164c44d260321a339868d8011", + "requires": [ + "194_ProjectActivityMergeType" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.Location_Reparent", + "sha256": "96a271705ee6c0b60a184703a7d11ea2d4d199079ed6329865104702298fdb09" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "196_RelationshipReviewChronologyAndTypes", + "file": "196_RelationshipReviewChronologyAndTypes.sql", + "sha256": "ef54ec1117a5a3a24ce2164295bd2360a99d89ffeca5f51367c5621a5b391055", + "requires": [ + "195_LocationReparent" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceReviewCandidate_RefreshPendingRelationships", + "sha256": "294ba8448495578670813942bb3e2ca8a53e1b9f72df1a4f55b896c3860faa99" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceReviewCandidate_ListPage", + "sha256": "eca3ecd5e666bf6d22cd6ef4987994b18954d2bd43f67eae43ef302d16e9821a" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "197_SceneRelationshipDevelopments", + "file": "197_SceneRelationshipDevelopments.sql", + "sha256": "0a5add156b6d7f8b06a1cf5a959d5c1bae6634a5c5525ce275466e430ef75da9", + "requires": [ + "196_RelationshipReviewChronologyAndTypes" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.RelationshipEvents", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceRelationship_AcceptDevelopment", + "sha256": "d87f4d1e23142065e9862017a7c3383eacfe46ac82e32f7cc5896170f3799cc2" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceReviewCandidate_RefreshPendingRelationships", + "sha256": "294ba8448495578670813942bb3e2ca8a53e1b9f72df1a4f55b896c3860faa99" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "198_FixDevelopmentAccountResetObsoleteIllustrationAssignmentReference", + "file": "198_FixDevelopmentAccountResetObsoleteIllustrationAssignmentReference.sql", + "sha256": "dda3bbb5223fb46f6c9df304a8128048ec0886edf236b4a6bd8c6815e8bddb32", + "requires": [ + "197_SceneRelationshipDevelopments" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligence_DevelopmentAccountReset", + "sha256": "748ccaa4042c06b223d4d4fb2ed239fb78dd7a1a30745d2ba46068a30f8c4eff" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "199_FixCharacterEnrichmentClaimNextQuotedIdentifier", + "file": "199_FixCharacterEnrichmentClaimNextQuotedIdentifier.sql", + "sha256": "b21e170f7123a3e3dc530e633e8423ef1a1d07d2e58ee813a2312adca7b5db8f", + "requires": [ + "198_FixDevelopmentAccountResetObsoleteIllustrationAssignmentReference" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.CharacterEnrichmentRun_ClaimNext", + "sha256": "b3b18c33610aad4d13f9c4838570f7c845e46e385c6c0b4e948388d2c5779a21" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "200_StoryIntelligenceExceptionReview", + "file": "200_StoryIntelligenceExceptionReview.sql", + "sha256": "333aa5b44d805a56ac2173987fec30c98b3d7c269c9df7651b6d511bae061e67", + "requires": [ + "199_FixCharacterEnrichmentClaimNextQuotedIdentifier" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.StoryIntelligenceReviewCandidates", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.CharacterKnowledge", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.CharacterKnowledge_Save", + "sha256": "f0e1cfb70507cc45b80a143a2df99bb21565246be94ec199e6f06eab60afaea6" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceReview_List", + "sha256": "5c9470afcd0d2d6e052ab5aadbc371fbd139ddd3b1146b40ecfa02d55d0db727" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceReview_Summary", + "sha256": "6f2cab0eb2f305c4a8bc1315c5252c6c9e636f654861b8b6a1fd4ef65f38d463" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceReview_Assess", + "sha256": "8a15b9f9e7a36f5ac71c82ffb31e837f131fb0946ea5ea59bcc72784098b5db5" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceReviewCandidateGeneration_Begin", + "sha256": "1c9cc0457f5e9aa2b799c495abfb4364e3c7837f012102e51302177d53b5b260" + }, + { + "kind": "module_sha256", + "name": "dbo.StoryIntelligenceReviewCandidate_Save", + "sha256": "5c89eaf71066b6d0ed54e39b737a95dfdb976a8636f5aa6d6e9cc0c6a2e22600" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "201_SubscriptionEntitlementEnforcement", + "file": "201_SubscriptionEntitlementEnforcement.sql", + "sha256": "e793fc7d04a338416ca1227b69fd2a06b760b384f4878e2a89924f74db791950", + "requires": [ + "200_StoryIntelligenceExceptionReview" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.SubscriptionOverride", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.SubscriptionAdministrationAudit", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.SubscriptionBookSlotReservation", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.SubscriptionOverride_GetActive", + "sha256": "7f6500d6a67301edf5102f0764fffd10c76afc6db1c7b55d56e244b6584acdde" + }, + { + "kind": "module_sha256", + "name": "dbo.UserSubscription_GetForEntitlement", + "sha256": "9cc5e07ecbeb64ff15b094340f8cb11c531a681c071f2ec1806e8c6cb8b1b56a" + }, + { + "kind": "module_sha256", + "name": "dbo.SubscriptionEntitlement_TryReserveBookSlots", + "sha256": "1c4057dca7d646e36167d3406ecd2b358ae97e1c8a612757a67de7bb3f161072" + }, + { + "kind": "module_sha256", + "name": "dbo.SubscriptionEntitlement_ReleaseBookSlots", + "sha256": "7224163ecd5a9f2b4f85b2a99082ba700a257e1f325d0d07747802a57fe2b11d" + }, + { + "kind": "module_sha256", + "name": "dbo.SubscriptionAdmin_SearchUsers", + "sha256": "63a6649e580d3476f3ac188a78b72fc6dcac828576cb7b94e89a1a312620318f" + }, + { + "kind": "module_sha256", + "name": "dbo.SubscriptionAdmin_ExtendTrial", + "sha256": "fd03dee8891b0651882703be73f0f5cfac60c89d31168d237dfcdca1e76b20df" + }, + { + "kind": "module_sha256", + "name": "dbo.SubscriptionAdmin_SaveOverride", + "sha256": "f8f43787e3c36c14733e4eaeba60d5baca767be2d5132a631a8239be0b8d5392" + }, + { + "kind": "module_sha256", + "name": "dbo.SubscriptionAdmin_RevokeOverride", + "sha256": "54b015dfcce8550cf5884d0b1c701843732db805f68d623ec2804648f6f28448" + }, + { + "kind": "module_sha256", + "name": "dbo.User_Create", + "sha256": "b413d32046520572dd53d04c52a70f14380f53be9306f99e148772389dedde68" + }, + { + "kind": "module_sha256", + "name": "dbo.SubscriptionEntitlement_ResourceLimits", + "sha256": "2e8561aa29352819f48af991c017b936374123ff81c9d8745723fd1dcdc322fe" + }, + { + "kind": "module_sha256", + "name": "dbo.TR_Books_EnforceSubscriptionInsert", + "sha256": "05454d27848cb2242eaa45aeddc6eb69dc6478724eb08434dc397595c74ad2b0" + }, + { + "kind": "module_sha256", + "name": "dbo.TR_Chapters_EnforceSubscriptionInsert", + "sha256": "93c455f46670fa90c1df34791189e431b29f9ee2653acf872ca999279c46c606" + }, + { + "kind": "module_sha256", + "name": "dbo.TR_Scenes_EnforceSubscriptionInsert", + "sha256": "688bcceaef8abe42a9317174e0dc8012bc3130f00991fdabf086d8c0ba1cdec4" + }, + { + "kind": "module_sha256", + "name": "dbo.TR_Characters_EnforceSubscriptionInsert", + "sha256": "d692bab9754fc15da5118015b8fb8df9f0163b64d80758193129ec4cfa536f34" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "201_UserToolbarPreferences", + "file": "201_UserToolbarPreferences.sql", + "sha256": "0d98db04571c69ebf9691c1847c409936e45bfe71eb9f3a6215c4fdc8bc6225c", + "requires": [ + "201_SubscriptionEntitlementEnforcement" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.AppUser", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.UserToolbar_Get", + "sha256": "b3a6099a0f3ff834aa58546d5c8335e17ac64ed8502dad0c233a2b4da8501546" + }, + { + "kind": "module_sha256", + "name": "dbo.UserToolbar_Save", + "sha256": "08ba38150932cb14169075d2f64e999eb29fb76e7e2351ee13d119a72de74388" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "202_UserApplicationAppearance", + "file": "202_UserApplicationAppearance.sql", + "sha256": "dd79fb7805e29bb41d9a95af80181477f1af9f3d44ed52e12ee720b522294d14", + "requires": [ + "201_UserToolbarPreferences" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.AppUser", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.UserAppearance_Get", + "sha256": "7337bd01c3b63a5837c2c51ac75c876a640145884239692e810a1df3d7bd7db2" + }, + { + "kind": "module_sha256", + "name": "dbo.UserAppearance_SaveTheme", + "sha256": "6f911988d4e479e7a41d134bc1c0c0df4b654ce31d405b70f6b53cc1f6cee877" + }, + { + "kind": "module_sha256", + "name": "dbo.UserAppearance_SaveRibbon", + "sha256": "7e525e2e031f402f40825fbba4efce82e0ca9161d6bd0e910d72d19aa8135c33" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "203_UserApplicationBarPreferences", + "file": "203_UserApplicationBarPreferences.sql", + "sha256": "2f66ada86ff0cce14175831f93ca2d68d37adf1eaf33c1fcdb630b97f231c52d", + "requires": [ + "202_UserApplicationAppearance" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.AppUser", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.UserAppearance_Get", + "sha256": "7337bd01c3b63a5837c2c51ac75c876a640145884239692e810a1df3d7bd7db2" + }, + { + "kind": "module_sha256", + "name": "dbo.UserAppearance_SaveApplicationBar", + "sha256": "19ea2f55a232eaad8173fe6674d766d3d902182a9f10ba7c95195930e05fb48b" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "204_PlotLineWorkspaceV1", + "file": "204_PlotLineWorkspaceV1.sql", + "sha256": "968c37b98a7f790a2110a123fdd700a660e75f7f301c4a533d92325e3a5f3451", + "requires": [ + "203_UserApplicationBarPreferences" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.PlotLineWorkspace_Get", + "sha256": "b063dfd4fcc5748bc5874cca82dd775838fa0cff1a8a1cfc8b08734a5a7a7db8" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "205_UserApplicationAppearanceThemes", + "file": "205_UserApplicationAppearanceThemes.sql", + "sha256": "1d043a4bb47985f71fa8580119266a03dd65619ce2389fbb29e9f013074d031c", + "requires": [ + "204_PlotLineWorkspaceV1" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.UserAppearance_SaveTheme", + "sha256": "6f911988d4e479e7a41d134bc1c0c0df4b654ce31d405b70f6b53cc1f6cee877" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "206_WritingProblemSolver", + "file": "206_WritingProblemSolver.sql", + "sha256": "3a24d57641bfeb61bccc524e0954eeaea08a758fd047c748f6e0936070a56370", + "requires": [ + "205_UserApplicationAppearanceThemes" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.WritingSolverVersions", + "type": "U" + }, + { + "kind": "module_sha256", + "name": "dbo.WritingSolver_Get", + "sha256": "165502f33a3f6fa2df749417839481333d2d1f2d3cf57e57803d632a2a25056d" + }, + { + "kind": "module_sha256", + "name": "dbo.WritingSolver_Publish", + "sha256": "cfc2630e8752cb2c3faabd199f48184e1c8f507335c3fd8343c38888017692bd" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "207_PlotDirectorApplicationTheme", + "file": "207_PlotDirectorApplicationTheme.sql", + "sha256": "f800829cb5bc5bb749fd3b3983525f5e57376ada50e90d283ddf0cb9ff79b10e", + "requires": [ + "206_WritingProblemSolver" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "module_sha256", + "name": "dbo.UserAppearance_SaveTheme", + "sha256": "6f911988d4e479e7a41d134bc1c0c0df4b654ce31d405b70f6b53cc1f6cee877" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "release_InitialProblemSolverPublication", + "file": "release_InitialProblemSolverPublication.sql", + "sha256": "5dc4e11c523eca66e9d747825307ed65e5666c1dd64bcc2d2ee1a30e9094264c", + "requires": [ + "207_PlotDirectorApplicationTheme" + ], + "mode": "baseline", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "solver_graph", + "version": "writing-solver-curated-v2-stage1-repair", + "sha256": "b341f299e0704490a57bbada6f3dd06a5b952c3a451f14506b811545e4d4cc3f" + } + ], + "evidence": "evidence/baseline.json" + }, + { + "id": "208_StoryMaps", + "file": "208_StoryMaps.sql", + "sha256": "6d788be9efe766a9817fc86a769cecd30cad337ea805999614d4faea45fddac5", + "requires": [ + "release_InitialProblemSolverPublication" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryMaps", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.MapFeatures", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.MapRelationships", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryMap_Authorize", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMap_List", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMap_Get", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMap_Create", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMap_Delete", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMap_Save", + "type": "P" + } + ] + }, + { + "id": "209_StoryMapsBackupRestore", + "file": "209_StoryMapsBackupRestore.sql", + "sha256": "071d2b72cb3a4f18b78f7b48102bb808ad754340eac722d6004182d32d095f62", + "requires": [ + "208_StoryMaps" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryMap_Backup", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRestore_ApplyFromJson", + "type": "P" + } + ] + }, + { + "id": "210_MapStoryMode", + "file": "210_MapStoryMode.sql", + "sha256": "d2e00017f941355a6dff537605446b5ebc57d5f755f5ab2550e85127fbbd025e", + "requires": [ + "209_StoryMapsBackupRestore" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.MapJourneyNotes", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryMap_Story", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMap_JourneySave", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMap_Save", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMap_Backup", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRestore_ApplyFromJson", + "type": "P" + } + ] + }, + { + "id": "211_MapJourneyArchivedSceneRestore", + "file": "211_MapJourneyArchivedSceneRestore.sql", + "sha256": "3b2595de583bc3b5235858e0256ad6c854e3dc8c79a02b2f947945a264b63a52", + "requires": [ + "210_MapStoryMode" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ProjectRestore_ApplyFromJson", + "type": "P" + } + ] + }, + { + "id": "212_MapAppearanceReferences", + "file": "212_MapAppearanceReferences.sql", + "sha256": "dd6dd79904090c39b170093716fcd5a9e18cbad0113cc71dd7b50c7395fae522", + "requires": [ + "211_MapJourneyArchivedSceneRestore" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.MapReferenceImages", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.MapReferenceImage_Owner", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.MapReferenceImage_List", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.MapReferenceImage_Get", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.MapReferenceImage_Find", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.MapReferenceImage_Create", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.MapReferenceImage_DeleteUnused", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMap_List", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMap_Get", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMap_Save", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMap_Backup", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRestore_ApplyFromJson", + "type": "P" + } + ] + }, + { + "id": "213_ProjectBackupBookContext", + "file": "213_ProjectBackupBookContext.sql", + "sha256": "72cb45c1d41118efad9f8047e9228abec8817049573501d3b839f839bc1c3062", + "requires": [ + "212_MapAppearanceReferences" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ProjectBackup_BookMetadata_List", + "type": "P" + } + ] + }, + { + "id": "214_ProjectBackupPersistentSourceState", + "file": "214_ProjectBackupPersistentSourceState.sql", + "sha256": "548e2877a4b52134a09274a8caeadfce632967a35df25a1af41f594d0145d105", + "requires": [ + "213_ProjectBackupBookContext" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ProjectBackup_Export", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectBackup_PersistentState_List", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRestore_ApplyFromJson", + "type": "P" + } + ] + }, + { + "id": "215_ProjectBackupMapStoredMetadata", + "file": "215_ProjectBackupMapStoredMetadata.sql", + "sha256": "1470ebc244e2d8b5bf2255e9288d194bef61650af868ac27c9dda2c31bbd0c63", + "requires": [ + "214_ProjectBackupPersistentSourceState" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryMap_Backup", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectBackup_Export", + "type": "P" + } + ] + }, + { + "id": "216_ProjectBackupCompanionSceneLinks", + "file": "216_ProjectBackupCompanionSceneLinks.sql", + "sha256": "d2cb4657d8d0f68b1b768d7a908bb545d51d1b78faf025579aa08b6d685169df", + "requires": [ + "215_ProjectBackupMapStoredMetadata" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ProjectBackup_PersistentState_List", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRestore_ApplyFromJson", + "type": "P" + } + ] + }, + { + "id": "217_ProjectBackupUploadedFiles", + "file": "217_ProjectBackupUploadedFiles.sql", + "sha256": "94e8ac06821f4a0110e55e079664c21c022e11b794011ab47e340c1e666c794b", + "requires": [ + "216_ProjectBackupCompanionSceneLinks" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ProjectBackup_PersistentState_List", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRestore_ApplyFromJson", + "type": "P" + } + ] + }, + { + "id": "218_ImportSharedAssetStateLookups", + "file": "218_ImportSharedAssetStateLookups.sql", + "sha256": "a056d5decbc1c8f42c7aa13270b7d5706cbd0b9988677cc1ca4cb6dd30132ca2", + "requires": [ + "217_ProjectBackupUploadedFiles" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.Import_LookupIds", + "type": "P" + } + ] + }, + { + "id": "219_WordManuscriptImportCurrentSceneModel", + "file": "219_WordManuscriptImportCurrentSceneModel.sql", + "sha256": "23fba17cdbd2ef2de6b09f5b1cd1680655a1035422c96685888236fd983a2952", + "requires": [ + "218_ImportSharedAssetStateLookups" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WordCompanion_Manuscript_Import", + "type": "P" + } + ] + }, + { + "id": "220_ProjectBackupCoreBuildProvenance", + "file": "220_ProjectBackupCoreBuildProvenance.sql", + "sha256": "fbe6d97cc61fb12162196840a1592b87d3eb2fbdd29e05dd7c167311550c559d", + "requires": [ + "219_WordManuscriptImportCurrentSceneModel" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ProjectBackup_PersistentState_List", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRestore_ApplyFromJson", + "type": "P" + } + ] + }, + { + "id": "221_ProjectBackupSceneReviewState", + "file": "221_ProjectBackupSceneReviewState.sql", + "sha256": "b3086ce02f6015b9853fc67cbab41d37a10e421b8afd39f9152a985fd8d55ba3", + "requires": [ + "220_ProjectBackupCoreBuildProvenance" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ProjectBackup_PersistentState_List", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRestore_ApplyFromJson", + "type": "P" + } + ] + }, + { + "id": "222_ProjectBackupCoreLocationReview", + "file": "222_ProjectBackupCoreLocationReview.sql", + "sha256": "f7516a0ab9c3defee9c0ab7e7c915cda2e3e674577d6de39bebe9fe3f65ad49b", + "requires": [ + "221_ProjectBackupSceneReviewState" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ProjectBackup_PersistentState_List", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRestore_ApplyFromJson", + "type": "P" + } + ] + }, + { + "id": "223_ProjectBackupAnalysisAudit", + "file": "223_ProjectBackupAnalysisAudit.sql", + "sha256": "c809694fe54d9b7acb975bff021e759e0c577671d1d733c940c6db19272a7753", + "requires": [ + "222_ProjectBackupCoreLocationReview" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ProjectBackup_PersistentState_List", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRestore_ApplyFromJson", + "type": "P" + } + ] + }, + { + "id": "224_ProjectBackupStoryMemory", + "file": "224_ProjectBackupStoryMemory.sql", + "sha256": "5d088bed5a4d859e14eafcbcf3e6824fe05441716da63605d1fecfd2a93f6c5d", + "requires": [ + "223_ProjectBackupAnalysisAudit" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ProjectBackup_PersistentState_List", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRestore_ApplyFromJson", + "type": "P" + } + ] + }, + { + "id": "225_ProjectBackupEntityReviews", + "file": "225_ProjectBackupEntityReviews.sql", + "sha256": "cde36fc86c9fde52f3fb795a81222bfe88bf9ece0cbc9a1380fc5e07be72859e", + "requires": [ + "224_ProjectBackupStoryMemory" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ProjectBackup_PersistentState_List", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRestore_ApplyFromJson", + "type": "P" + } + ] + }, + { + "id": "226_ProjectRestoreAccountReferences", + "file": "226_ProjectRestoreAccountReferences.sql", + "sha256": "2f2d2b03cc124ffcdb5300327109a8c383947268e8a833f822b267d5a8bccb38", + "requires": [ + "225_ProjectBackupEntityReviews" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ProjectRestore_ApplyFromJson", + "type": "P" + } + ] + }, + { + "id": "227_ProjectBackupCharacterEnrichment", + "file": "227_ProjectBackupCharacterEnrichment.sql", + "sha256": "3ecf8367699afe20428a9a3abf15ec4b4b1f01e1ace12f694a1352dd25df6e6e", + "requires": [ + "226_ProjectRestoreAccountReferences" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ProjectBackup_PersistentState_List", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRestore_ApplyFromJson", + "type": "P" + } + ] + }, + { + "id": "228_ProjectBackupNarrativeHistory", + "file": "228_ProjectBackupNarrativeHistory.sql", + "sha256": "62cfdc7845cbb390f1b86f14950a009065fbd587d9f95cfca3b335bee9ff910e", + "requires": [ + "227_ProjectBackupCharacterEnrichment" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ProjectBackup_PersistentState_List", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRestore_ApplyFromJson", + "type": "P" + } + ] + }, + { + "id": "229_ProjectBackupIllustrationHistory", + "file": "229_ProjectBackupIllustrationHistory.sql", + "sha256": "8ce144140a3609fb439e7f28856a02b4333ef5457e97c7c07cd5623d48acbc13", + "requires": [ + "228_ProjectBackupNarrativeHistory" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ProjectBackup_PersistentState_List", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRestore_ApplyFromJson", + "type": "P" + } + ] + }, + { + "id": "230_WordMarkerAcknowledgementOwnership", + "file": "230_WordMarkerAcknowledgementOwnership.sql", + "sha256": "f0e2bd49b1b32e4cd312fd8fb8ca9086f8f83b331a8f57183321dc34839863f8", + "requires": [ + "229_ProjectBackupIllustrationHistory" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.Onboarding_ManuscriptBuild_AcknowledgeOwnedMarkers", + "type": "P" + } + ] + }, + { + "id": "231_NativeChapterReview", + "file": "231_NativeChapterReview.sql", + "sha256": "fb9768c104f522682a87945be870b63fee895c1961606cf703619b052315616a", + "requires": [ + "230_WordMarkerAcknowledgementOwnership" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.NativeChapterReviews", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.NativeChapterReview_Access", + "type": "P" + } + ] + }, + { + "id": "232_NativeApprovedImport", + "file": "232_NativeApprovedImport.sql", + "sha256": "80603a82b8a8da68c0bce60543d9969b83c98b68ad77d5a8ae975a177a4b6dcb", + "requires": [ + "231_NativeChapterReview" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.NativeImportOperations", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.NativeReviewImports", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.NativeReviewSource_Save", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.NativeReviewImport", + "type": "P" + } + ] + }, + { + "id": "233_NativeImportedPositions", + "file": "233_NativeImportedPositions.sql", + "sha256": "e0edc2efe42fd0b04262a4a10acc7c0f37c36c1424e96938225b012b89f67fc7", + "requires": [ + "232_NativeApprovedImport" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.NativeReviewSource_Save", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.NativeImportedCatalog", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.NativeImportedPosition", + "type": "P" + } + ] + }, + { + "id": "234_NativeImportedSessionGuard", + "file": "234_NativeImportedSessionGuard.sql", + "sha256": "d3a42010a2754cfac774b29e9e4d83fd80bad0c0f7841e5ef335494b83408f98", + "requires": [ + "233_NativeImportedPositions" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.NativeReviewSource_Save", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.NativeImportedPosition", + "type": "P" + } + ] + }, + { + "id": "235_WritingIntentAssessment", + "file": "235_WritingIntentAssessment.sql", + "sha256": "f0ac7191e9594bb97757d68c2c90457f7bf75c2fa1033d59e944eee00a6c347d", + "requires": [ + "234_NativeImportedSessionGuard" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WritingIntentAssessments", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WritingIntentAssessment", + "type": "P" + } + ] + }, + { + "id": "236_BookRecovery", + "file": "236_BookRecovery.sql", + "sha256": "d5d647c6c7e8e0c9cdc762f9446c3656543d318a3b8c4708ad99a420dacce762", + "requires": [ + "235_WritingIntentAssessment" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.BookRecovery", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRecovery_State", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRecovery_Apply", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRestore_ApplyFromJson", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.SubscriptionUsage_BookCountForOwner", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.BookHardDelete_ForOwner", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectHardDelete_PrepareDependencies", + "type": "P" + } + ] + }, + { + "id": "237_DurableManuscriptCapture", + "file": "237_DurableManuscriptCapture.sql", + "sha256": "e246ca0afc4e1baa2e75a4a2bbceeff0af1c2cf03be8e085c2b51a418e4197b8", + "requires": [ + "236_BookRecovery" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.OnboardingManuscriptCaptures", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.OnboardingManuscriptCapture", + "type": "P" + } + ] + }, + { + "id": "238_NativeInstallationAuthorisation", + "file": "238_NativeInstallationAuthorisation.sql", + "sha256": "063efb74a80d2bd3992cde4da3730b15c101198f270f6c97f0177cf3d0d4d777", + "requires": [ + "237_DurableManuscriptCapture" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.NativeCompanionInstallations", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.NativeCompanionInstallation", + "type": "P" + } + ] + }, + { + "id": "239_ManuscriptAnalysisCheckpoints", + "file": "239_ManuscriptAnalysisCheckpoints.sql", + "sha256": "105cea4acd2515dad1151b77d12b417073e1cb29c3422260687999eecdb7a808", + "requires": [ + "238_NativeInstallationAuthorisation" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.OnboardingManuscriptChapterAnalysis", + "type": "P" + } + ] + }, + { + "id": "240_ParagraphManuscripts", + "file": "240_ParagraphManuscripts.sql", + "sha256": "0346413a348728ab3151138664a6d516d0725ed266a14d89c59e5170283c05a7", + "requires": [ + "239_ManuscriptAnalysisCheckpoints" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.BookParagraphManuscripts", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ManuscriptEvidenceIndex", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.BookParagraphPositions", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ParagraphManuscript", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ParagraphEvidence_States", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.Dynamics_RunContinuityChecks", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRecovery_State", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRestore_ApplyFromJson", + "type": "P" + } + ] + }, + { + "id": "241_ParagraphRecovery", + "file": "241_ParagraphRecovery.sql", + "sha256": "d69b68b98b82d6c351169ea5bcd0349d46cc176a2ca878090e2da1ae097f6097", + "requires": [ + "240_ParagraphManuscripts" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ProjectParagraphRecovery_Apply", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRecovery_State", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRecovery_Apply", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ProjectRestore_ApplyFromJson", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ParagraphManuscript", + "type": "P" + } + ] + }, + { + "id": "242_CoreImportCompletion", + "file": "242_CoreImportCompletion.sql", + "sha256": "c807804d6abe09153dbdbf51b097634083e9fe6e0e2436c54f545a90c60cf817", + "requires": [ + "241_ParagraphRecovery" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.UserOnboarding_CompleteCoreImport", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.UserOnboarding_SetCurrentStep", + "type": "P" + } + ] + }, + { + "id": "243_ParagraphChapterBoundaries", + "file": "243_ParagraphChapterBoundaries.sql", + "sha256": "a00b99a536184c58063ac4fe20de6a68f1310452f7119c37c953a17002e075ce", + "requires": [ + "242_CoreImportCompletion" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ParagraphManuscript", + "type": "P" + } + ] + }, + { + "id": "244_WritingContextRecordedMetrics", + "file": "244_WritingContextRecordedMetrics.sql", + "sha256": "f965a6b4a4218374741837ac4f137a390d30885cfd26a891b47a3f757189d873", + "requires": [ + "243_ParagraphChapterBoundaries" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.SceneMetric_ListRecordedForBook", + "type": "P" + } + ] + }, + { + "id": "245_ChapterSynchronisation", + "file": "245_ChapterSynchronisation.sql", + "sha256": "d088f215dabcc88d7ce9e76098ec6c115303b2bb677e7797c92d66038d18b43b", + "requires": [ + "244_WritingContextRecordedMetrics" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.BookChapterValidations", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.BookChapterSync", + "type": "P" + } + ] + }, + { + "id": "246_ChapterReviewInvalidatesLivePositions", + "file": "246_ChapterReviewInvalidatesLivePositions.sql", + "sha256": "5fdfeb5783ca0659f508b52ffbf0c3f4c7ea49f4bd0ea52988f09161d4c28bba", + "requires": [ + "245_ChapterSynchronisation" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.BookChapterSync", + "type": "P" + } + ] + }, + { + "id": "247_ChapterAdoptionSnapshotDigest", + "file": "247_ChapterAdoptionSnapshotDigest.sql", + "sha256": "7c9fd46406562d24686e702f2688dc87c457313340ab5128ae07bd4483a894ba", + "requires": [ + "246_ChapterReviewInvalidatesLivePositions" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.BookChapterSync", + "type": "P" + } + ] + }, + { + "id": "248_ChapterAcceptanceSetBasedAdoption", + "file": "248_ChapterAcceptanceSetBasedAdoption.sql", + "sha256": "9bef98b85f213dc77c3350890bf900bff018cfaf28aad27faf511487798c97a1", + "requires": [ + "247_ChapterAdoptionSnapshotDigest" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.BookChapterSync", + "type": "P" + } + ] + }, + { + "id": "249_SelectiveChapterProjections", + "file": "249_SelectiveChapterProjections.sql", + "sha256": "97b8932e476d5dd3cb4d95e36911c4d35948fe31e249b2fcd44d991249a0a494", + "requires": [ + "248_ChapterAcceptanceSetBasedAdoption" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ParagraphManuscript", + "type": "P" + } + ] + }, + { + "id": "250_SelectiveChapterShiftedSourceBounds", + "file": "250_SelectiveChapterShiftedSourceBounds.sql", + "sha256": "f89c28b298cfa7a6c2ee5bb207f48a4883337b86dfb9b0ede986047768dcdc7d", + "requires": [ + "249_SelectiveChapterProjections" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ParagraphManuscript", + "type": "P" + } + ] + }, + { + "id": "251_ChapterCheckpointReuse", + "file": "251_ChapterCheckpointReuse.sql", + "sha256": "48a613ac7779968c8ceab9e946d4017de9ce1cfc68e45bbb54100c588a6de83b", + "requires": [ + "250_SelectiveChapterShiftedSourceBounds" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.BookChapterReuse", + "type": "P" + } + ] + }, + { + "id": "252_ChapterReuseStrictPositionRows", + "file": "252_ChapterReuseStrictPositionRows.sql", + "sha256": "4351d72ddc92ed6b0d309d00aa1d2b3446a7ec9f11701af0e124ba156184a1cf", + "requires": [ + "251_ChapterCheckpointReuse" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.BookChapterReuse", + "type": "P" + } + ] + }, + { + "id": "253_LocationGeography", + "file": "253_LocationGeography.sql", + "sha256": "7d0b2093ce82ad54c21769e2f2820e3a91b69a6e5cd2a0719e168b3458b5f51b", + "requires": [ + "252_ChapterReuseStrictPositionRows" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.GeographicCache", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.LocationGeography", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.GeographicLookupLease", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.GeographicProviderGate", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.Geography_Get", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.Geography_Claim", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.Geography_Chain", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.Geography_Cache", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.Geography_Reserve", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.Geography_Complete", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.Geography_Choose", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.Geography_Retry", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.Geography_Exclude", + "type": "P" + } + ] + }, + { + "id": "255_GeographyHierarchyStateWidth", + "file": "255_GeographyHierarchyStateWidth.sql", + "sha256": "fefa5d8831c2633d8d0acd3d18aa91c0fdd75228a2b342848d46aa6fc7a2a4ce", + "requires": [ + "253_LocationGeography" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ] + }, + { + "id": "254_GeographyAuthorHierarchyBatches", + "file": "254_GeographyAuthorHierarchyBatches.sql", + "sha256": "de3f38c46a62848e869fdb1a89cfd4115fc57c9f1803bee6d1df1316cbb27df9", + "requires": [ + "255_GeographyHierarchyStateWidth" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.GeographicAuthorBatch", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.Geography_BatchPermit", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.Geography_SubmitHierarchy", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.Geography_Reserve", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.Geography_ProviderRelease", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.Geography_Retry", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.Geography_Exclude", + "type": "P" + } + ] + }, + { + "id": "256_GeographyQueueIndex", + "file": "256_GeographyQueueIndex.sql", + "sha256": "61dde250a677b83dd6a06da61fe0055dd0822c4eead0a62219268986c8bdbf00", + "requires": [ + "254_GeographyAuthorHierarchyBatches" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ] + }, + { + "id": "257_GeographyRequiredLookupAccounting", + "file": "257_GeographyRequiredLookupAccounting.sql", + "sha256": "936ddd27ed5c4c4940a5996beacdf53afe65d98a77d3638e8c7768361179038f", + "requires": [ + "256_GeographyQueueIndex" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.Geography_Get", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.Geography_BatchPermit", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.Geography_SubmitLocations", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.Geography_SubmitHierarchy", + "type": "P" + } + ] + }, + { + "id": "258_GeographyBoundedContextFallback", + "file": "258_GeographyBoundedContextFallback.sql", + "sha256": "275ebc0698edb0de4c8e82b80de30d382e3e05591d2e292f309d5fbcd616fcf7", + "requires": [ + "257_GeographyRequiredLookupAccounting" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.Geography_Claim", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.Geography_Complete", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.Geography_Retry", + "type": "P" + } + ] + }, + { + "id": "259_WritingActivityFoundation", + "file": "259_WritingActivityFoundation.sql", + "sha256": "97a323e1a941ed24c4bc4e4e1f47274545dc337ec1874352a7c0df9764809f65", + "requires": [ + "258_GeographyBoundedContextFallback" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WritingActivitySettings", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WritingActivityReceipts", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WritingActivityEvents", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WritingActivity", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.WritingActivity_Prune", + "type": "P" + } + ] + }, + { + "id": "260_WriterActivitySummary", + "file": "260_WriterActivitySummary.sql", + "sha256": "c492dce33c5f9f113e839671a505b0b902f43f46ce7eb2f8c206f38f6cb5df10", + "requires": [ + "259_WritingActivityFoundation" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WritingActivity_Summary", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.WriterBook_Reminders", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.WritingActivity_List", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.WritingScheduleDashboard_ListActive", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.WritingActivity", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.WritingActivity_BaselineTargets", + "type": "P" + } + ] + }, + { + "id": "261_WriterWorkingObjective", + "file": "261_WriterWorkingObjective.sql", + "sha256": "0ba11c806c7709ed06e12c8e7296962b75532cd352aaa02edda549b43f5f82ba", + "requires": [ + "260_WriterActivitySummary" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterWorkingObjectives", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterObjective", + "type": "P" + } + ] + }, + { + "id": "262_WriterWorkSessions", + "file": "262_WriterWorkSessions.sql", + "sha256": "30aba7de3331a9007f6855c9529393e693978d6bfe8b38824767683a393388ff", + "requires": [ + "261_WriterWorkingObjective" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterWorkSessions", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterWorkDays", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterWork", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.WriterWorkCalendar", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.WriterWork_Prune", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.WriterWorkEvidence", + "type": "P" + } + ] + }, + { + "id": "263_WriterPlanningActivities", + "file": "263_WriterPlanningActivities.sql", + "sha256": "9dea703298c10d8c1fd5f8b0c2dfbd3b8c98f7a8147fbc4451a05fb43f29f8a1", + "requires": [ + "262_WriterWorkSessions" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterPlannedActivities", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterPlanning", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.WriterPlanningUpcoming", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.WritingPlan_ListForManagement", + "type": "P" + } + ] + }, + { + "id": "264_WriterFoundationQueues", + "file": "264_WriterFoundationQueues.sql", + "sha256": "452e1a5b2f9f181527940745c67f5b7a49972b1898f31b6703581ab600352acd", + "requires": [ + "263_WriterPlanningActivities" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterDashboard_Scenes", + "type": "P" + } + ] + }, + { + "id": "265_WriterInlineAuthoring", + "file": "265_WriterInlineAuthoring.sql", + "sha256": "ec8dfeeb7d94222709c7c184bd317d24574a314d07ae24e6270ccb67b7c87da2", + "requires": [ + "264_WriterFoundationQueues" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterAuthoring_Sections", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.WriterAuthoring_Save", + "type": "P" + } + ] + }, + { + "id": "266_WriterInlineOptionalValues", + "file": "266_WriterInlineOptionalValues.sql", + "sha256": "c9be1b0c2f7accc787a88b7a53bd7ec18daf179a8705cc624e1f29ae3d65cf35", + "requires": [ + "265_WriterInlineAuthoring" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterAuthoring_Save", + "type": "P" + } + ] + }, + { + "id": "267_WriterInlineLongTextValidation", + "file": "267_WriterInlineLongTextValidation.sql", + "sha256": "7449603be26e56c54243ca2e6c39f7c3ffafeea1326184b4898cf99825daa9d9", + "requires": [ + "266_WriterInlineOptionalValues" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterAuthoring_Save", + "type": "P" + } + ] + }, + { + "id": "268_WriterAuthoringFieldConcurrency", + "file": "268_WriterAuthoringFieldConcurrency.sql", + "sha256": "fe5c0fee860da43092545d7bddd2ce9e52ba9a3c65523b2161de241138514d7d", + "requires": [ + "267_WriterInlineLongTextValidation" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterAuthoring_Sections", + "type": "P" + } + ] + }, + { + "id": "269_WriterAuthoringEmptyCollectionTokens", + "file": "269_WriterAuthoringEmptyCollectionTokens.sql", + "sha256": "a41a8ef628a572e815fff4b74a26fd586846402651d48e8cfd5af279cb8fe8e6", + "requires": [ + "268_WriterAuthoringFieldConcurrency" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterAuthoring_Sections", + "type": "P" + } + ] + }, + { + "id": "270_WriterAuthoringCanonicalTextLengths", + "file": "270_WriterAuthoringCanonicalTextLengths.sql", + "sha256": "835b04a06db36a57f4e371a334c092b6211322285e74464d3d281215295b5a2e", + "requires": [ + "269_WriterAuthoringEmptyCollectionTokens" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterAuthoring_Save", + "type": "P" + } + ] + }, + { + "id": "271_WriterWordStatus", + "file": "271_WriterWordStatus.sql", + "sha256": "381ef572c26762a35ffa9e81acc0c51dccca917616fa65b70675379991becbc3", + "requires": [ + "270_WriterAuthoringCanonicalTextLengths" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterWord_Status", + "type": "P" + } + ] + }, + { + "id": "272_WriterReviewObservations", + "file": "272_WriterReviewObservations.sql", + "sha256": "7315bafba5e1137e70cbab870f991bb8f356aedf68828fc7576883700de53aa4", + "requires": [ + "271_WriterWordStatus" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterReviewObservations", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterReview_Observations", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.WriterReview_ParagraphStart", + "type": "P" + } + ] + }, + { + "id": "273_WriterInvestigations", + "file": "273_WriterInvestigations.sql", + "sha256": "51b737ccd6f2492e863ad87dc92f2b76f9cbfd74acdedb022b8a821a5e6861c5", + "requires": [ + "272_WriterReviewObservations" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterInvestigationCatalogues", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterInvestigations", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterInvestigationEvents", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterInvestigationCatalogue", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.WriterInvestigation", + "type": "P" + } + ] + }, + { + "id": "274_WriterEditorialCatalogues", + "file": "274_WriterEditorialCatalogues.sql", + "sha256": "1fe7185abd4d2e9836428352ad045e9a77816bd473db917c7ab720e66a3628f8", + "requires": [ + "273_WriterInvestigations" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterInvestigationCatalogue", + "type": "P" + } + ] + }, + { + "id": "275_InvestigationGuidance", + "file": "275_InvestigationGuidance.sql", + "sha256": "20e35790cad4a8d86be0f932c500cd6a1e9adabbd6b2c02c77b8357196308fa0", + "requires": [ + "274_WriterEditorialCatalogues" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterInvestigationGuidance", + "type": "U" + } + ] + }, + { + "id": "276_InvestigationGuidanceProcedure", + "file": "276_InvestigationGuidanceProcedure.sql", + "sha256": "3ea232ff36486720ada87b7d7b3820d2cbceb8ef28e4a828ad13b84a8bd6cc19", + "requires": [ + "275_InvestigationGuidance" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterInvestigationGuidanceState", + "type": "P" + } + ] + }, + { + "id": "277_InvestigationGuidanceBookScope", + "file": "277_InvestigationGuidanceBookScope.sql", + "sha256": "8403c7478bc2a5c295a52e52850058b1455a23df429a0e4337e35f1827b3697c", + "requires": [ + "276_InvestigationGuidanceProcedure" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterInvestigationGuidanceState", + "type": "P" + } + ] + }, + { + "id": "278_InvestigationSavedSummaries", + "file": "278_InvestigationSavedSummaries.sql", + "sha256": "a25ba5c636392246daee368d661586f25ccb5298e1dc22131570dd5afb079fe1", + "requires": [ + "277_InvestigationGuidanceBookScope" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterInvestigationSavedSummaries", + "type": "P" + } + ] + }, + { + "id": "279_InvestigationSavedActivity", + "file": "279_InvestigationSavedActivity.sql", + "sha256": "9ee0b2e5e0e2695f3979ef282cebfd4fe915bf0c5cf48818779e8128367a26af", + "requires": [ + "278_InvestigationSavedSummaries" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterInvestigationSavedSummaries", + "type": "P" + } + ] + }, + { + "id": "280_WriterFocusIntention", + "file": "280_WriterFocusIntention.sql", + "sha256": "799525f384300aad0895870e283ac66735e9b24abad5ddd150cf500e8c0c96ce", + "requires": [ + "279_InvestigationSavedActivity" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterObjective", + "type": "P" + } + ] + }, + { + "id": "281_WriterActivities", + "file": "281_WriterActivities.sql", + "sha256": "5f81643bfb223a4d6f1e91fcfeefd661a34d3ce77a038c408373f7ff7180fb0a", + "requires": [ + "280_WriterFocusIntention" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterActivities", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterActivities_Manage", + "type": "P" + } + ] + }, + { + "id": "282_WriterEditorialAnnotations", + "file": "282_WriterEditorialAnnotations.sql", + "sha256": "707df7720e0dd28acd34515b96851d8ec4ef14270283ebf5a2d32ca0a18de87f", + "requires": [ + "281_WriterActivities" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterReview_Observations", + "type": "P" + } + ] + }, + { + "id": "283_DataAccessAuditReads", + "file": "283_DataAccessAuditReads.sql", + "sha256": "46524f231c66bbc4923c276f7b9a691c3f479b76783bcb9c2e2bc1048afdf485", + "requires": [ + "282_WriterEditorialAnnotations" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryMemory_ListProcessedSceneResultIds", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMemory_ListCharacters", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMemory_ListCharacterAttributes", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMemory_ListLocations", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMemory_ListAssets", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMemory_ListAssignments", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMemory_GetAssignment", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMemory_ListDemands", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMemory_GetImportContext", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMemory_GetDiagnostics", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.CharacterIntelligence_ListProfiles", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.UserOnboarding_ClearWritingSoftware", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMemory_InvalidateAssignment", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.CharacterIntelligence_AddEvidence", + "type": "P" + } + ] + }, + { + "id": "284_PlotWorkspaceCandidateAssociations", + "file": "284_PlotWorkspaceCandidateAssociations.sql", + "sha256": "6b84cd68f4f00205b96b10e4c7084f529cfa12d1b76c5d65aac6f05f6a3c200a", + "requires": [ + "283_DataAccessAuditReads" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.PlotLineWorkspace_Get", + "type": "P" + } + ] + }, + { + "id": "285_StoredProcedureCompoundWrites", + "file": "285_StoredProcedureCompoundWrites.sql", + "sha256": "a7ce608879638f3a9031195cedd1abbf10e4629dbc91acdd543c0f3a6dfec68a", + "requires": [ + "284_PlotWorkspaceCandidateAssociations" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryMemory_ClearDerivedState", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMemory_MarkSceneResultProcessed", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMemory_UpsertCharacter", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMemory_AddCharacterAlias", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMemory_AddCharacterAttribute", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMemory_UpsertLocation", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMemory_UpsertAsset", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMemory_UpsertRelationship", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMemory_UpsertAssignment", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMemory_UpsertDemand", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryMemory_SetImportContext", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.IllustrationLibrary_SupersedeRecoveredFailures", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.CharacterIntelligence_UpsertProfile", + "type": "P" + } + ] + }, + { + "id": "287_ControlledKnownCharacterQueueContracts", + "file": "287_ControlledKnownCharacterQueueContracts.sql", + "sha256": "53f54abae9ff6b298c84c9e9211abe92d922616a60a7900dd7b25d9fe9485f91", + "requires": [ + "285_StoredProcedureCompoundWrites" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.StoryIntelligenceRun_QueueAdminText", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.StoryIntelligenceRun_ClaimNextPending", + "type": "P" + } + ] + }, + { + "id": "288_ManuscriptReaderNavigation", + "file": "288_ManuscriptReaderNavigation.sql", + "sha256": "ae07d21b84071341a58e40d9861847ec4db01807c9f12df8ffd4ae3d84c2a6c3", + "requires": [ + "287_ControlledKnownCharacterQueueContracts" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ManuscriptReader_CanRead", + "type": "P" + } + ] + }, + { + "id": "289_ChapterSyncMaterializedIntervals", + "file": "289_ChapterSyncMaterializedIntervals.sql", + "sha256": "bb371a9fe349c1ba1eab4b9457651758e36416c75d644fc7bae00299cb5703ed", + "requires": [ + "288_ManuscriptReaderNavigation" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.BookChapterSync", + "type": "P" + } + ] + }, + { + "id": "290_InvestigationDeletion", + "file": "290_InvestigationDeletion.sql", + "sha256": "d2d1a10d8eec9b2ae9878a46b202c8046823ab61be7422441c2e7b7fb953aab7", + "requires": [ + "289_ChapterSyncMaterializedIntervals" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterInvestigationDeletions", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterInvestigationDelete", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.WriterInvestigation", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.WriterInvestigationGuidanceState", + "type": "P" + } + ] + }, + { + "id": "291_InvestigationDeletionIdentityLock", + "file": "291_InvestigationDeletionIdentityLock.sql", + "sha256": "07f4f309a5dc36ee46ee641ea753b74980692dae4a4decab49b5deffffee0086", + "requires": [ + "290_InvestigationDeletion" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterInvestigationDelete", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.WriterInvestigation", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.WriterInvestigationGuidanceState", + "type": "P" + } + ] + }, + { + "id": "292_NarrativeFocus", + "file": "292_NarrativeFocus.sql", + "sha256": "88464b6ffe8c43df8e0054c9841e852fbc113d2fe8790957de62757e39391d0a", + "requires": [ + "291_InvestigationDeletionIdentityLock" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.NarrativeFocus", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.NarrativeFocusHistory", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.NarrativeFocus_Read", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.NarrativeFocus_Set", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.WriterObjective", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.NarrativeFocus_Locate", + "type": "P" + } + ] + }, + { + "id": "293_NarrativeFocusCanonicalOrder", + "file": "293_NarrativeFocusCanonicalOrder.sql", + "sha256": "539d53b48865e8cc7f74073f8180132f9f98c910f65f3edb63dcc15a7801cfca", + "requires": [ + "292_NarrativeFocus" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.NarrativeFocus_Read", + "type": "P" + } + ] + }, + { + "id": "294_NarrativeFocusChapterBoundaries", + "file": "294_NarrativeFocusChapterBoundaries.sql", + "sha256": "2aaa582358eaa2816f443e3cb9a5ef47b45ef2371a746d70a120b55af8b3a2ef", + "requires": [ + "293_NarrativeFocusCanonicalOrder" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.NarrativeFocus_Read", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.NarrativeFocus_Set", + "type": "P" + } + ] + }, + { + "id": "295_UserToastPosition", + "file": "295_UserToastPosition.sql", + "sha256": "4a5e5eceb6143f93858a3f4824bde266bc5a1b828c768a1717abe1def2bc5cae", + "requires": [ + "294_NarrativeFocusChapterBoundaries" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.UserAppearance_Get", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.UserAppearance_SaveToastPosition", + "type": "P" + } + ] + }, + { + "id": "296_WriterChapterVerification", + "file": "296_WriterChapterVerification.sql", + "sha256": "74c7a2bba03365cbe4add90ecf74e1b36440836af5682d4531fb483e29710cc7", + "requires": [ + "295_UserToastPosition" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WriterWord_ChapterVerification", + "type": "P" + } + ] + }, + { + "id": "297_ContextCharacterImportDefault", + "file": "297_ContextCharacterImportDefault.sql", + "sha256": "f2d83a9017a6743cac378f2545775de92b81b72a1832cbfdd4bc68ff9033cc8b", + "requires": [ + "296_WriterChapterVerification" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ] + }, + { + "id": "298_ContextCharacterAliases", + "file": "298_ContextCharacterAliases.sql", + "sha256": "19b542eb3898e0272f4450ba1e9a9b7f86663190b1e4aba1441ca388b93bae81", + "requires": [ + "297_ContextCharacterImportDefault" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.CharacterAlias_ListByProjectForUser", + "type": "P" + } + ] + }, + { + "id": "299_ContextNamesUsageScope", + "file": "299_ContextNamesUsageScope.sql", + "sha256": "9eb4213d5b3eca48fc7a2cdbfdb5ae080ea892196a478ea665a55d6c30bc54d6", + "requires": [ + "298_ContextCharacterAliases" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.GivenName_Search", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.GivenName_UsedDecorations", + "type": "P" + } + ] + }, + { + "id": "300_ContextRelationshipLenses", + "file": "300_ContextRelationshipLenses.sql", + "sha256": "33600c71a40ce67d9c02c5e33858fd4d221b8b91771c61693da99ca8697adc74", + "requires": [ + "299_ContextNamesUsageScope" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ContextRelationshipLens_Read", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ContextRelationshipLens_Events", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ContextCharacter_Lookup", + "type": "P" + } + ] + }, + { + "id": "304_CharacterLifeStatusCanonical", + "file": "304_CharacterLifeStatusCanonical.sql", + "sha256": "fd8da8af35d1db8fe9d37c391fc21fdf8e0a679e36bf1c81da766d7b507da3e6", + "requires": [ + "300_ContextRelationshipLenses" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.Character_Save", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.Character_GetReferenceForUser", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.Character_LifeStatus_Save", + "type": "P" + } + ] + }, + { + "id": "305_ContextFamilyExploration", + "file": "305_ContextFamilyExploration.sql", + "sha256": "f2dcae61fdea268a34713319e58ff3a7f884a8dc87df6b39f2ce47b0606e608c", + "requires": [ + "304_CharacterLifeStatusCanonical" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ContextFamily_Structure", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.ContextFamily_Tree", + "type": "P" + } + ] + }, + { + "id": "306_CharacterWorkspaceReads", + "file": "306_CharacterWorkspaceReads.sql", + "sha256": "9dd821fdaa5919f6792d08b8891cbe65d935b5a2ba65e40bda87455a935ba018", + "requires": [ + "305_ContextFamilyExploration" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.CharacterWorkspace_Summary", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.CharacterWorkspace_Records", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.CharacterWorkspace_Relationships", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.CharacterWorkspace_Gallery", + "type": "P" + } + ] + }, + { + "id": "307_CharacterWorkspaceManagement", + "file": "307_CharacterWorkspaceManagement.sql", + "sha256": "730122679f79cc1d68423b382049c3a5cfa36dd30577297f48d9b50f1b7e4683", + "requires": [ + "306_CharacterWorkspaceReads" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.CharacterWorkspace_RelationshipFrame", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.CharacterWorkspace_ChangeRelationship", + "type": "P" + } + ] + }, + { + "id": "308_CharacterWorkspaceConnectionSummaries", + "file": "308_CharacterWorkspaceConnectionSummaries.sql", + "sha256": "ffccc1e23c634621e80b1f381de1cfce9407e6d86507bbffb630b819ad383fe4", + "requires": [ + "307_CharacterWorkspaceManagement" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.CharacterWorkspace_Summary", + "type": "P" + } + ] + }, + { + "id": "309_CharacterRelationshipGroups", + "file": "309_CharacterRelationshipGroups.sql", + "sha256": "3ab1e8e7aecb52557e88a2adde93197f42807802450ae0aa026c4c3b04cad1ff", + "requires": [ + "308_CharacterWorkspaceConnectionSummaries" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.CharacterWorkspace_Relationships", + "type": "P" + } + ] + }, + { + "id": "310_CharacterRelationshipQuickEdit", + "file": "310_CharacterRelationshipQuickEdit.sql", + "sha256": "9631cf9270a215f05738dc4a9bb92f13c45f28cf8debb4956b2492f5692bf9ad", + "requires": [ + "309_CharacterRelationshipGroups" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.CharacterWorkspace_ChangeRelationship", + "type": "P" + } + ] + }, + { + "id": "311_RelationshipEvolutionRefinement", + "file": "311_RelationshipEvolutionRefinement.sql", + "sha256": "edc0030e2fe49e7c234beaddc77c83c04fd99fa3cf36387a7f6c2e96124ed298", + "requires": [ + "310_CharacterRelationshipQuickEdit" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.Dynamics_RelationshipEvolution", + "type": "P" + } + ] + }, + { + "id": "312_CharacterRelationshipGroupBounds", + "file": "312_CharacterRelationshipGroupBounds.sql", + "sha256": "2733d6fd6594ffd75f79fe80ea79b15313edbc35e648cac5b406269061ceeb37", + "requires": [ + "311_RelationshipEvolutionRefinement" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.CharacterWorkspace_Relationships", + "type": "P" + } + ] + }, + { + "id": "313_CharacterRelationshipLensFilters", + "file": "313_CharacterRelationshipLensFilters.sql", + "sha256": "8583eed1e611090d2434f3078df2c64c92a59874a318791ef2b2657d30119ced", + "requires": [ + "312_CharacterRelationshipGroupBounds" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.CharacterWorkspace_Relationships", + "type": "P" + } + ] + }, + { + "id": "314_UnifiedManuscriptFocus", + "file": "314_UnifiedManuscriptFocus.sql", + "sha256": "1f0dc77faae02f8b23c5b6cdc43bc2148ebfdb3510e07c014bb218f5aeaefa9f", + "requires": [ + "313_CharacterRelationshipLensFilters" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.NarrativeFocus_Coordinate", + "type": "P" + } + ] + }, + { + "id": "315_SharedFocusCanonicalRead", + "file": "315_SharedFocusCanonicalRead.sql", + "sha256": "48bd0100d69b2220e10a1bc2faf24a504a457157636e25ef9a9da98ac66b7945", + "requires": [ + "314_UnifiedManuscriptFocus" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.NarrativeFocus_Read", + "type": "P" + }, + { + "kind": "object", + "name": "dbo.NarrativeFocus_Set", + "type": "P" + } + ] + }, + { + "id": "316_SharedFocusWordPositions", + "file": "316_SharedFocusWordPositions.sql", + "sha256": "5b980b47e71013aae1d6941c1e5b686345df7a2b6c734e9809c3370a95d3231b", + "requires": [ + "315_SharedFocusCanonicalRead" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.NarrativeFocus_WordPosition", + "type": "P" + } + ] + }, + { + "id": "317_SharedFocusChapterBoundaries", + "file": "317_SharedFocusChapterBoundaries.sql", + "sha256": "b40f193c3a56958bc9d34a22d13712766e408be962b8ed9bb87a592198dc72e8", + "requires": [ + "316_SharedFocusWordPositions" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.NarrativeFocus_Coordinate", + "type": "P" + } + ] + }, + { + "id": "319_DeploymentHealth", + "file": "319_DeploymentHealth.sql", + "sha256": "b6eeb5d6b911f5b6eb11d262187c04eccc6ba2e3247ac4bcae55ad2341c215dc", + "requires": [ + "317_SharedFocusChapterBoundaries" + ], + "mode": "execute", + "prerequisites": [ + { + "kind": "object", + "name": "dbo.DatabaseMigrationHistory", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ApplicationReleaseHistory", + "type": "U" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.Deployment_Health", + "type": "P" + } + ] + } + ], + "omitted_migrations": [ + { + "id": "286_DevelopmentResetProcedures", + "sha256": "ed1de0660ed11ad36799b4449adb8c502a792e34c3b238482039ebdf4d6a5b3e", + "reason": "Development-only reset procedure refresh; no Production execution; current runtime guards require separate review.", + "evidence": "evidence/baseline.json" + }, + { + "id": "301_CharacterLifeStatus", + "sha256": "2ce923ff04ab7648790521d68f8aeea5d4e56b6c36ea884a73fdb212f17043e0", + "reason": "Superseded by standalone migration 304, which explicitly replaces partial 301 and failed 302; 303 is the intermediate projection repair covered by 304.", + "evidence": "evidence/baseline.json" + }, + { + "id": "302_CharacterLifeStatusProjections", + "sha256": "b50f5bb1616bf5eff5a02ccba92cf6348e8da663941c1242fd578b3f315b62e7", + "reason": "Superseded by standalone migration 304, which explicitly replaces partial 301 and failed 302; 303 is the intermediate projection repair covered by 304.", + "evidence": "evidence/baseline.json" + }, + { + "id": "303_CharacterLifeStatusProjectionRepair", + "sha256": "947d276060e33a8a07c8e6413d97c36ce6b41540a80efb14386e16015108e21f", + "reason": "Superseded by standalone migration 304, which explicitly replaces partial 301 and failed 302; 303 is the intermediate projection repair covered by 304.", + "evidence": "evidence/baseline.json" + } + ], + "prerequisites": [ + { + "kind": "object", + "name": "dbo.Books", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.AppUser", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.WritingSolverVersions", + "type": "U" + }, + { + "kind": "solver_graph", + "version": "writing-solver-curated-v2-stage1-repair", + "sha256": "b341f299e0704490a57bbada6f3dd06a5b952c3a451f14506b811545e4d4cc3f" + } + ], + "postconditions": [ + { + "kind": "object", + "name": "dbo.DatabaseMigrationHistory", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.ApplicationReleaseHistory", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.BookParagraphManuscripts", + "type": "U" + }, + { + "kind": "object", + "name": "dbo.NarrativeFocus_Coordinate", + "type": "P" + }, + { + "kind": "solver_graph", + "version": "writing-solver-curated-v2-stage1-repair", + "sha256": "b341f299e0704490a57bbada6f3dd06a5b952c3a451f14506b811545e4d4cc3f" + }, + { + "kind": "object", + "name": "dbo.Deployment_Health", + "type": "P" + } + ], + "qualification": { + "status": "pending", + "evidence": "evidence/qualification.json" + } +} diff --git a/PlotLine.Tests/DeploymentOperationsTests.cs b/PlotLine.Tests/DeploymentOperationsTests.cs new file mode 100644 index 00000000..f98b2cfc --- /dev/null +++ b/PlotLine.Tests/DeploymentOperationsTests.cs @@ -0,0 +1,76 @@ +using System.Net; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; +using PlotLine.Controllers; +using PlotLine.Data; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.DataProtection; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Options; + +internal static class DeploymentOperationsTests +{ + public static void Run() + { + foreach(var address in new[]{"203.0.113.1","192.168.10.8"}) + { + var repository=new Probe();var controller=Controller(address,repository); + if(controller.Read(default).GetAwaiter().GetResult() is not NotFoundResult || repository.Calls!=0) + throw new Exception("External health request reached the database"); + } + foreach(var address in new[]{"127.0.0.1","::1"}) + { + var repository=new Probe();var controller=Controller(address,repository); + if(controller.Read(default).GetAwaiter().GetResult() is not JsonResult || repository.Calls!=1) + throw new Exception("Loopback health request did not verify the database"); + } + var unready=new Probe{Ready=false}; + if(Controller("127.0.0.1",unready).Read(default).GetAwaiter().GetResult() is not ObjectResult {StatusCode:503}) + throw new Exception("Uninitialised ledger passed health"); + var failed=new Probe{Fail=true}; + if(Controller("127.0.0.1",failed).Read(default).GetAwaiter().GetResult() is not ObjectResult {StatusCode:503}) + throw new Exception("Database failure passed health"); + DataProtectionIdentity(); + } + private static void DataProtectionIdentity() + { + var temporary=Directory.CreateTempSubdirectory("pd-protection-test-").FullName; + try + { + var oldRoot=Path.Combine(temporary,"old");var newRoot=Path.Combine(temporary,"new");var keys=Path.Combine(temporary,"keys"); + Directory.CreateDirectory(oldRoot);Directory.CreateDirectory(newRoot);Directory.CreateDirectory(keys); + ServiceProvider Services(string root,string? applicationName=null) + { + var builder=WebApplication.CreateBuilder(new WebApplicationOptions{ContentRootPath=root,EnvironmentName="Qualification"}); + var protection=builder.Services.AddDataProtection().PersistKeysToFileSystem(new DirectoryInfo(keys)); + if(applicationName is not null)protection.SetApplicationName(applicationName); + return builder.Services.BuildServiceProvider(); + } + using var original=Services(oldRoot); + var identity=original.GetRequiredService>().Value.ApplicationDiscriminator; + if(identity!=oldRoot+Path.DirectorySeparatorChar)throw new Exception("Hosting content-root identity differs from the reviewed assumption"); + var purpose=new[]{"Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationMiddleware","Cookies","v2"}; + var protectedValue=original.GetRequiredService().CreateProtector(purpose).Protect("synthetic compatibility probe"); + using var moved=Services(newRoot); + var failed=false; + try{moved.GetRequiredService().CreateProtector(purpose).Unprotect(protectedValue);} + catch(System.Security.Cryptography.CryptographicException){failed=true;} + if(!failed)throw new Exception("Different default roots unexpectedly shared an application identity"); + using var pinned=Services(newRoot,identity); + if(pinned.GetRequiredService().CreateProtector(purpose).Unprotect(protectedValue)!="synthetic compatibility probe") + throw new Exception("Explicit stable Data Protection identity did not preserve the synthetic payload"); + } + finally{Directory.Delete(temporary,true);} + } + private static DeploymentHealthController Controller(string address,Probe repository) + { + var http=new DefaultHttpContext();http.Connection.RemoteIpAddress=IPAddress.Parse(address); + return new DeploymentHealthController(repository){ControllerContext=new ControllerContext{HttpContext=http}}; + } + private sealed class Probe:IDeploymentHealthRepository + { + public int Calls;public bool Ready=true;public bool Fail; + public Task ReadAsync(CancellationToken cancellationToken) + {Calls++;if(Fail)throw new InvalidOperationException("Private diagnostic must not reach HTTP");return Task.FromResult(new DeploymentDatabaseHealth("Isolated",Ready));} + } +} diff --git a/PlotLine.Tests/Program.cs b/PlotLine.Tests/Program.cs index b3429b39..7fea1fcb 100644 --- a/PlotLine.Tests/Program.cs +++ b/PlotLine.Tests/Program.cs @@ -199,6 +199,7 @@ if(args.Contains("--focus-diagnostics")){SharedFocusDiagnosticsTests.Run();retur var tests = new (string Name, Action Test)[] { + ("Deployment health is loopback-only, database-backed and fails closed",DeploymentOperationsTests.Run), ("Main Character workspace lazy reads and safe management",()=>CharacterWorkspaceTests.Run().GetAwaiter().GetResult()), ("Scene family identification and branch exploration",ContextFamilyTests.Run), ("Context Family/Story projection and bounded reads",()=>ContextRelationshipLensTests.Run().GetAwaiter().GetResult()), diff --git a/PlotLine/Controllers/DeploymentHealthController.cs b/PlotLine/Controllers/DeploymentHealthController.cs new file mode 100644 index 00000000..8a55b9f4 --- /dev/null +++ b/PlotLine/Controllers/DeploymentHealthController.cs @@ -0,0 +1,37 @@ +using System.Net; +using System.Reflection; +using System.Text.RegularExpressions; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; +using PlotLine.Data; + +namespace PlotLine.Controllers; + +[AllowAnonymous] +[ApiExplorerSettings(IgnoreApi=true)] +public sealed class DeploymentHealthController(IDeploymentHealthRepository database) : Controller +{ + [HttpGet("/_deployment/health")] + [ResponseCache(NoStore=true,Location=ResponseCacheLocation.None)] + public async Task Read(CancellationToken cancellationToken) + { + // Forwarded headers have already restored the external client's address. + // This endpoint is for the local activation helper, never the public proxy. + if(HttpContext.Connection.RemoteIpAddress is not { } ip || !IPAddress.IsLoopback(ip)) + return NotFound(); + try + { + var state=await database.ReadAsync(cancellationToken); + if(!state.LedgerReady)return StatusCode(503,new {healthy=false}); + var info=typeof(Program).Assembly.GetCustomAttribute()?.InformationalVersion??""; + var sha=Regex.Match(info,@"\+([a-f0-9]{40})").Groups[1].Value; + if(sha.Length!=40)return StatusCode(503,new {healthy=false}); + return Json(new {healthy=true,version=info.Split('+')[0],sourceCommit=sha,database=state.DatabaseName}); + } + catch(Exception) when(!cancellationToken.IsCancellationRequested) + { + // Never return SQL diagnostics or connection information to HTTP clients. + return StatusCode(503,new {healthy=false}); + } + } +} diff --git a/PlotLine/Data/DeploymentHealthRepository.cs b/PlotLine/Data/DeploymentHealthRepository.cs new file mode 100644 index 00000000..8f3ecc88 --- /dev/null +++ b/PlotLine/Data/DeploymentHealthRepository.cs @@ -0,0 +1,22 @@ +using System.Data; +using Dapper; + +namespace PlotLine.Data; + +public sealed record DeploymentDatabaseHealth(string DatabaseName, bool LedgerReady); + +public interface IDeploymentHealthRepository +{ + Task ReadAsync(CancellationToken cancellationToken); +} + +public sealed class DeploymentHealthRepository(ISqlConnectionFactory connections) : IDeploymentHealthRepository +{ + public async Task ReadAsync(CancellationToken cancellationToken) + { + using var connection=connections.CreateConnection(); + return await connection.QuerySingleAsync(new CommandDefinition( + "dbo.Deployment_Health",commandType:CommandType.StoredProcedure, + cancellationToken:cancellationToken,commandTimeout:5)); + } +} diff --git a/PlotLine/Program.cs b/PlotLine/Program.cs index 0373ece8..d7df8c03 100644 --- a/PlotLine/Program.cs +++ b/PlotLine/Program.cs @@ -6,6 +6,8 @@ using PlotLine.Models; using PlotLine.Services; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.DataProtection; +using Microsoft.AspNetCore.HttpOverrides; +using System.Net; using Microsoft.Extensions.FileProviders; using PlotLine.Hubs; @@ -24,6 +26,15 @@ public class Program builder.Logging.ClearProviders(); builder.Logging.AddConsole(); builder.Logging.AddDebug(); + builder.Services.Configure(options => + { + options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto; + options.ForwardLimit = 1; + options.KnownIPNetworks.Clear(); + options.KnownProxies.Clear(); + options.KnownProxies.Add(IPAddress.Loopback); + options.KnownProxies.Add(IPAddress.IPv6Loopback); + }); builder.Services.AddControllersWithViews(options => { @@ -59,8 +70,14 @@ public class Program builder.Environment.ContentRootPath, builder.Configuration["DataProtection:KeysPath"]); Directory.CreateDirectory(dataProtectionKeyPath); - builder.Services.AddDataProtection() + var dataProtection = builder.Services.AddDataProtection() .PersistKeysToFileSystem(new DirectoryInfo(dataProtectionKeyPath)); + // Releases live in versioned directories. A separately provisioned stable + // identity prevents a path change from silently changing the key purpose. + // Leave the existing default intact unless operations explicitly configure it. + var dataProtectionApplicationName = builder.Configuration["DataProtection:ApplicationName"]; + if (!string.IsNullOrWhiteSpace(dataProtectionApplicationName)) + dataProtection.SetApplicationName(dataProtectionApplicationName); builder.Services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme) .AddCookie(options => { @@ -143,6 +160,7 @@ public class Program }); }); builder.Services.AddSingleton(); + builder.Services.AddScoped(); builder.Services.AddSingleton(); builder.Services.AddHostedService(services => services.GetRequiredService()); builder.Services.AddScoped(); @@ -384,6 +402,8 @@ public class Program configure?.Invoke(builder); var app = builder.Build(); + app.UseForwardedHeaders(); + if (!app.Environment.IsDevelopment()) { app.UseExceptionHandler("/Home/Error"); diff --git a/PlotLine/Sql/318_DeploymentHistory.sql b/PlotLine/Sql/318_DeploymentHistory.sql new file mode 100644 index 00000000..0debc376 --- /dev/null +++ b/PlotLine/Sql/318_DeploymentHistory.sql @@ -0,0 +1,48 @@ +-- Authoritative forward migration/release history. No historical execution is inferred. +SET ANSI_NULLS ON; +SET QUOTED_IDENTIFIER ON; +GO +IF OBJECT_ID(N'dbo.DatabaseMigrationHistory', N'U') IS NULL +BEGIN + CREATE TABLE dbo.DatabaseMigrationHistory + ( + MigrationIdentity nvarchar(200) NOT NULL CONSTRAINT PK_DatabaseMigrationHistory PRIMARY KEY, + ScriptFilename nvarchar(260) NOT NULL, + ScriptSha256 char(64) NOT NULL, + RecordedUtc datetime2(7) NOT NULL CONSTRAINT DF_DatabaseMigrationHistory_RecordedUtc DEFAULT SYSUTCDATETIME(), + DeploymentIdentifier varchar(100) NOT NULL, + DurationMilliseconds bigint NULL, + RecordingKind varchar(10) NOT NULL, + BaselineEvidenceReference nvarchar(500) NULL, + CONSTRAINT CK_DatabaseMigrationHistory_Kind CHECK + ((RecordingKind='Executed' AND DurationMilliseconds IS NOT NULL AND DurationMilliseconds>=0 AND BaselineEvidenceReference IS NULL) + OR (RecordingKind='Baselined' AND DurationMilliseconds IS NULL AND LEN(BaselineEvidenceReference)>0)), + CONSTRAINT CK_DatabaseMigrationHistory_Hash CHECK + (LEN(ScriptSha256)=64 AND ScriptSha256 COLLATE Latin1_General_100_BIN2 NOT LIKE '%[^0-9a-f]%') + ); +END; +GO +IF OBJECT_ID(N'dbo.ApplicationReleaseHistory', N'U') IS NULL +BEGIN + CREATE TABLE dbo.ApplicationReleaseHistory + ( + DeploymentIdentifier varchar(100) NOT NULL CONSTRAINT PK_ApplicationReleaseHistory PRIMARY KEY, + ReleaseIdentifier varchar(100) NOT NULL, + ApplicationVersion varchar(100) NOT NULL, + SourceCommit char(40) NOT NULL, + PackageSha256 char(64) NOT NULL, + MigrationManifestSha256 char(64) NOT NULL, + ActivatedUtc datetime2(7) NOT NULL CONSTRAINT DF_ApplicationReleaseHistory_ActivatedUtc DEFAULT SYSUTCDATETIME(), + EvidenceReference nvarchar(500) NOT NULL, + ActivationKind varchar(10) NOT NULL, + PreviousDeploymentIdentifier varchar(100) NULL, + CONSTRAINT FK_ApplicationReleaseHistory_Previous FOREIGN KEY (PreviousDeploymentIdentifier) + REFERENCES dbo.ApplicationReleaseHistory(DeploymentIdentifier), + CONSTRAINT CK_ApplicationReleaseHistory_Kind CHECK (ActivationKind IN ('Deploy','Rollback')), + CONSTRAINT CK_ApplicationReleaseHistory_Hashes CHECK + (LEN(SourceCommit)=40 AND SourceCommit COLLATE Latin1_General_100_BIN2 NOT LIKE '%[^0-9a-f]%' + AND LEN(PackageSha256)=64 AND PackageSha256 COLLATE Latin1_General_100_BIN2 NOT LIKE '%[^0-9a-f]%' + AND LEN(MigrationManifestSha256)=64 AND MigrationManifestSha256 COLLATE Latin1_General_100_BIN2 NOT LIKE '%[^0-9a-f]%') + ); +END; +GO diff --git a/PlotLine/Sql/319_DeploymentHealth.sql b/PlotLine/Sql/319_DeploymentHealth.sql new file mode 100644 index 00000000..46631e03 --- /dev/null +++ b/PlotLine/Sql/319_DeploymentHealth.sql @@ -0,0 +1,12 @@ +SET ANSI_NULLS ON; +SET QUOTED_IDENTIFIER ON; +GO +CREATE OR ALTER PROCEDURE dbo.Deployment_Health +AS +BEGIN + SET NOCOUNT ON; + SELECT DB_NAME() AS DatabaseName, + CONVERT(bit,CASE WHEN OBJECT_ID(N'dbo.DatabaseMigrationHistory',N'U') IS NOT NULL + AND OBJECT_ID(N'dbo.ApplicationReleaseHistory',N'U') IS NOT NULL THEN 1 ELSE 0 END) AS LedgerReady; +END; +GO diff --git a/Tools/Deployment/.gitignore b/Tools/Deployment/.gitignore new file mode 100644 index 00000000..b9c7d564 --- /dev/null +++ b/Tools/Deployment/.gitignore @@ -0,0 +1,3 @@ +__pycache__/ +bin/ +obj/ diff --git a/Tools/Deployment/DatabaseWorker/DatabaseWorker.csproj b/Tools/Deployment/DatabaseWorker/DatabaseWorker.csproj new file mode 100644 index 00000000..5d712bba --- /dev/null +++ b/Tools/Deployment/DatabaseWorker/DatabaseWorker.csproj @@ -0,0 +1,12 @@ + + + Exe + net10.0 + enable + enable + + + + + + diff --git a/Tools/Deployment/DatabaseWorker/Program.cs b/Tools/Deployment/DatabaseWorker/Program.cs new file mode 100644 index 00000000..21620ceb --- /dev/null +++ b/Tools/Deployment/DatabaseWorker/Program.cs @@ -0,0 +1,364 @@ +using System.Diagnostics; +using System.Security.Cryptography; +using System.Text; +using System.Text.Json; +using System.Text.Json.Nodes; +using System.Text.RegularExpressions; +using Microsoft.Data.SqlClient; + +// Root-owned, separately provisioned worker. JSON-lines protocol; never emits SQL, +// connection strings, exception messages or business data. Holds the SQL session +// lock across backup, migrations, application activation and health checks. +internal static class Program +{ + private static SqlConnection? connection; + private static string database = ""; + private static bool locked; + private static JsonObject? manifest; + private static string packageRoot = ""; + private static string deployment = ""; + private static string packageHash = ""; + private static string? currentMigration; + private static int currentBatch; + + public static async Task Main(string[] args) + { + if (args.Length != 1) return 2; + try + { + var config = JsonNode.Parse(await File.ReadAllTextAsync(args[0]))!.AsObject(); + database = S(config, "database"); + var builder = new SqlConnectionStringBuilder(S(config, "connection")); + if (builder.DataSource!=S(config,"expected_server") || Environment.MachineName!=S(config,"expected_host")) + throw new InvalidOperationException("server-identity"); + if (builder.InitialCatalog != database || !Regex.IsMatch(database, "^[A-Za-z][A-Za-z0-9_]{0,100}$")) + throw new InvalidOperationException("target"); + builder.ApplicationName = "PlotDirector deployment worker"; + builder.ConnectTimeout = 10; + connection = new SqlConnection(builder.ConnectionString); + await connection.OpenAsync(); + if ((string?)await Scalar("SELECT DB_NAME()") != database) throw new InvalidOperationException("target"); + Console.WriteLine("{\"ok\":true,\"ready\":true}"); + while (await Console.In.ReadLineAsync() is { } line) + { + try + { + var request = JsonNode.Parse(line)!.AsObject(); + var answer = await Execute(request); + Console.WriteLine(JsonSerializer.Serialize(new { ok = true, result = answer })); + } + catch (Exception e) + { + Console.WriteLine(JsonSerializer.Serialize(new { ok = false, + error = e is SqlException se ? "SQL_" + se.Number : e.Message is "baseline" or "concurrent-deployment" or "immutable-migration-checksum" ? e.Message : e.GetType().Name, + migration = currentMigration, batch = currentBatch })); + // A failed command poisons the session. Never proceed to activation. + return 1; + } + } + return 0; + } + catch (Exception e) + { + Console.WriteLine(JsonSerializer.Serialize(new { ok = false, + error = e is SqlException se ? "SQL_" + se.Number : e.GetType().Name })); + return 1; + } + finally { if (connection is not null) await connection.DisposeAsync(); } + } + + private static string S(JsonObject o, string key) => o[key]!.GetValue(); + private static string Hash(byte[] bytes) => Convert.ToHexStringLower(SHA256.HashData(bytes)); + private static SqlCommand Command(string sql, SqlTransaction? transaction = null) + => new(sql, connection, transaction) { CommandTimeout = 1800 }; + private static async Task Scalar(string sql, SqlTransaction? t = null) + { using var c = Command(sql, t); return await c.ExecuteScalarAsync(); } + private static async Task Run(string sql, SqlTransaction? t = null) + { using var c = Command(sql, t); await c.ExecuteNonQueryAsync(); } + + private static async Task Execute(JsonObject request) + { + var op = S(request, "op"); + if (op == "inspect") return new { schema = await Schema(), database }; + if(op is "fingerprint" or "integrity") + { + if(!database.StartsWith("PlotDirector_Qualification_",StringComparison.Ordinal)) + throw new InvalidOperationException("qualification-only"); + if(op=="fingerprint")return await Fingerprints(request["original"]?.AsObject()); + await Run("DBCC CHECKDB WITH NO_INFOMSGS,ALL_ERRORMSGS;"); + var violations=Convert.ToInt64(await Scalar("CREATE TABLE #violations([Table] nvarchar(512),[Constraint] nvarchar(512),[Where] nvarchar(max)); INSERT #violations EXEC('DBCC CHECKCONSTRAINTS WITH ALL_CONSTRAINTS,NO_INFOMSGS'); SELECT COUNT_BIG(*) FROM #violations; DROP TABLE #violations;")); + if(violations!=0)throw new InvalidOperationException("referential-integrity"); + return new { integrity=true, constraint_violations=violations }; + } + if (op == "begin") + { + if (locked) throw new InvalidOperationException("already-begun"); + var result = Convert.ToInt32(await Scalar("DECLARE @r int; EXEC @r=sys.sp_getapplock @Resource=N'PlotDirector.Deployment',@LockMode='Exclusive',@LockOwner='Session',@LockTimeout=0; SELECT @r;")); + if (result < 0) throw new InvalidOperationException("concurrent-deployment"); + locked = true; + packageRoot = Path.GetFullPath(S(request, "package_root")); + manifest = JsonNode.Parse(await File.ReadAllTextAsync(Path.Combine(packageRoot, "manifest.json")))!.AsObject(); + deployment = S(request, "deployment_id"); + packageHash = S(request, "package_sha256"); + if (!Regex.IsMatch(deployment, "^[A-Za-z0-9][A-Za-z0-9_.-]{0,99}$") || !Regex.IsMatch(packageHash,"^[a-f0-9]{64}$")) + throw new InvalidOperationException("identity"); + var actual = await Schema(); + var complete = await ValidateHistory(); + if (actual != S(manifest, "starting_schema_sha256") && !(complete && actual == S(manifest,"resulting_schema_sha256"))) + throw new InvalidOperationException("baseline"); + await Idle(); + await Conditions(manifest["prerequisites"]!.AsArray()); + return new { schema = actual, complete }; + } + if (!locked || manifest is null) throw new InvalidOperationException("not-begun"); + if (op == "idle") { await Idle(); return new { idle = true }; } + if (op == "backup") + { + // Path comes only from the root-owned target configuration, not a release. + var path = S(request, "path"); + if (!Regex.IsMatch(path, @"^/[A-Za-z0-9_./-]+\.bak$") || path.Split('/').Contains("..")) + throw new InvalidOperationException("backup-path"); + using var backup = Command("BACKUP DATABASE " + Quote(database) + " TO DISK=@p WITH COPY_ONLY,CHECKSUM,NOINIT; RESTORE VERIFYONLY FROM DISK=@p WITH CHECKSUM;"); + backup.Parameters.AddWithValue("@p", path); + await backup.ExecuteNonQueryAsync(); + return new { verified = true }; + } + if (op == "migrate") + { + await Idle(); + foreach (var node in manifest["migrations"]!.AsArray()) await Migration(node!.AsObject()); + var schema = await Schema(); + if (schema != S(manifest, "resulting_schema_sha256")) throw new InvalidOperationException("resulting-schema"); + await Conditions(manifest["postconditions"]!.AsArray()); + return new { schema }; + } + if (op == "health") + { + if ((string?)await Scalar("SELECT DB_NAME()") != database) throw new InvalidOperationException("target"); + if (await Schema() != S(manifest, "resulting_schema_sha256")) throw new InvalidOperationException("schema"); + await Conditions(manifest["postconditions"]!.AsArray()); + return new { healthy = true }; + } + if (op == "activated") + { + // Caller must pass health checks BEFORE this operation. Failed activation + // remains in protected filesystem evidence, never in successful history. + await Conditions(manifest["postconditions"]!.AsArray()); + using var cmd = Command("INSERT dbo.ApplicationReleaseHistory(DeploymentIdentifier,ReleaseIdentifier,ApplicationVersion,SourceCommit,PackageSha256,MigrationManifestSha256,EvidenceReference,ActivationKind,PreviousDeploymentIdentifier) VALUES(@id,@release,@version,@commit,@package,@manifest,@evidence,@kind,@previous)"); + foreach (var (key, value) in new Dictionary { + ["@id"]=deployment,["@release"]=S(manifest,"release_id"),["@version"]=S(manifest,"version"), + ["@commit"]=S(manifest,"source_commit"),["@package"]=packageHash, + ["@manifest"]=Hash(await File.ReadAllBytesAsync(Path.Combine(packageRoot,"manifest.json"))), + ["@evidence"]=S(request,"evidence"),["@kind"]=S(request,"kind"), + ["@previous"]=request["previous_deployment"]?.GetValue() is { } previous ? previous : DBNull.Value }) + cmd.Parameters.AddWithValue(key,value); + await cmd.ExecuteNonQueryAsync(); + return new { recorded = true }; + } + throw new InvalidOperationException("operation"); + } + + private static string Quote(string name) => "[" + name.Replace("]", "]]") + "]"; + + private static async Task Fingerprints(JsonObject? original) + { + var tables=new Dictionary>(); + using(var cmd=Command("SELECT s.name,t.name,c.name FROM sys.tables t JOIN sys.schemas s ON s.schema_id=t.schema_id JOIN sys.columns c ON c.object_id=t.object_id WHERE t.name NOT IN ('DatabaseMigrationHistory','ApplicationReleaseHistory') ORDER BY s.name,t.name,c.column_id")) + using(var reader=await cmd.ExecuteReaderAsync()) + while(await reader.ReadAsync()) + { + var key=reader.GetString(0)+"."+reader.GetString(1); + if(!tables.ContainsKey(key))tables[key]=[]; + tables[key].Add(reader.GetString(2)); + } + var answer=new Dictionary(); + var targets=original is null?tables.Keys.ToList():original.Select(x=>x.Key).ToList(); + foreach(var name in targets) + { + if(!tables.TryGetValue(name,out var available))throw new InvalidOperationException("lost-business-table"); + var columns=original is null?available:original[name]!["columns"]!.AsArray().Select(x=>x!.GetValue()).ToList(); + if(!columns.All(available.Contains))throw new InvalidOperationException("lost-business-column"); + var parts=name.Split('.'); + if(parts.Length!=2)throw new InvalidOperationException("table-name"); + var projection=string.Join(',',columns.Select(x=>"t."+Quote(x))); + using var cmd=Command($"SELECT COUNT_BIG(*),LOWER(CONVERT(varchar(64),HASHBYTES('SHA2_256',COALESCE(STRING_AGG(CONVERT(varchar(max),RowHash),'') WITHIN GROUP(ORDER BY RowHash),'')),2)) FROM {Quote(parts[0])}.{Quote(parts[1])} t CROSS APPLY (SELECT CONVERT(varchar(64),HASHBYTES('SHA2_256',(SELECT {projection} FOR JSON PATH,WITHOUT_ARRAY_WRAPPER,INCLUDE_NULL_VALUES)),2) AS RowHash) h"); + using var reader=await cmd.ExecuteReaderAsync();await reader.ReadAsync(); + answer[name]=new { columns, rows=reader.GetInt64(0),sha256=reader.GetString(1) }; + } + return answer; + } + + private static async Task Idle() + { + foreach (var table in new[] { "StoryIntelligenceRuns", "StoryIntelligenceJobs", "WholeBookPlotSynthesisRuns", "CharacterEnrichmentRuns", "OnboardingManuscriptBuilds", "GeographicLookupJob", "NativeChapterReviews" }) + { + var sql = $"IF OBJECT_ID(N'dbo.{table}',N'U') IS NOT NULL AND COL_LENGTH(N'dbo.{table}',N'Status') IS NOT NULL EXEC(N'IF EXISTS(SELECT 1 FROM dbo.{table} WHERE Status IN (N''Pending'',N''Queued'',N''Running'',N''Processing'',N''InProgress'',N''CancelRequested'')) THROW 51000,''Active background work'',1;');"; + await Run(sql); + } + } + + private static async Task ValidateHistory() + { + if (await Scalar("SELECT OBJECT_ID(N'dbo.DatabaseMigrationHistory',N'U')") is DBNull) + { + if (manifest!["migrations"]!.AsArray().Count==0) throw new InvalidOperationException("code-only-without-ledger"); + return false; + } + var complete = true; + var identities = new HashSet(); + foreach (var node in manifest!["migrations"]!.AsArray()) + { + var m = node!.AsObject(); + identities.Add(S(m,"id")); + using var cmd = Command("SELECT ScriptSha256 FROM dbo.DatabaseMigrationHistory WHERE MigrationIdentity=@id"); + cmd.Parameters.AddWithValue("@id",S(m,"id")); + if (await cmd.ExecuteScalarAsync() is string checksum) + { if(checksum!=S(m,"sha256"))throw new InvalidOperationException("immutable-migration-checksum"); } + else complete=false; + } + // Code-only plans retain their full immutable historical entries. A ledger + // identity absent from the approved plan is an unknown database state. + using var all = Command("SELECT MigrationIdentity FROM dbo.DatabaseMigrationHistory"); + using var reader = await all.ExecuteReaderAsync(); + while(await reader.ReadAsync()) if(!identities.Contains(reader.GetString(0)))throw new InvalidOperationException("unrecognised-history"); + return complete; + } + + private static async Task Migration(JsonObject migration) + { + var identity = S(migration,"id"); + currentMigration = identity; + currentBatch = 0; + var expected = S(migration,"sha256"); + var filename = S(migration,"file"); + if (Path.GetFileName(filename) != filename) throw new InvalidOperationException("migration-path"); + var bytes = await File.ReadAllBytesAsync(Path.Combine(packageRoot,"sql",filename)); + if (Hash(bytes) != expected) throw new InvalidOperationException("migration-checksum"); + var historyExists = await Scalar("SELECT OBJECT_ID(N'dbo.DatabaseMigrationHistory',N'U')") is not DBNull; + if (historyExists) + { + using var existing = Command("SELECT ScriptSha256 FROM dbo.DatabaseMigrationHistory WHERE MigrationIdentity=@id"); + existing.Parameters.AddWithValue("@id",identity); + if (await existing.ExecuteScalarAsync() is string prior) + { + if (prior != expected) throw new InvalidOperationException("immutable-migration-checksum"); + return; + } + } + await Conditions(migration["prerequisites"]!.AsArray()); + foreach(var prerequisite in migration["requires"]!.AsArray()) + { + using var check=Command("SELECT COUNT(*) FROM dbo.DatabaseMigrationHistory WHERE MigrationIdentity=@id"); + check.Parameters.AddWithValue("@id",prerequisite!.GetValue()); + if(Convert.ToInt32(await check.ExecuteScalarAsync())!=1)throw new InvalidOperationException("migration-dependency"); + } + if (S(migration,"mode") is not ("execute" or "baseline")) + throw new InvalidOperationException("nontransactional-migration-requires-reviewed-recovery"); + var stopwatch = Stopwatch.StartNew(); + await using var transaction = (SqlTransaction)await connection!.BeginTransactionAsync(); + try + { + if (S(migration,"mode") == "execute") + { + await Run("SET XACT_ABORT ON; SET ANSI_NULLS ON; SET QUOTED_IDENTIFIER ON;",transaction); + foreach (var batch in Batches(Encoding.UTF8.GetString(bytes).TrimStart('\ufeff'))) + { + currentBatch++; + await Run(batch,transaction); + if ((string?)await Scalar("SELECT DB_NAME()",transaction) != database || Convert.ToInt32(await Scalar("SELECT @@TRANCOUNT",transaction)) != 1) + throw new InvalidOperationException("migration-session-changed"); + } + } + await Conditions(migration["postconditions"]!.AsArray(), transaction); + using var insert = Command("INSERT dbo.DatabaseMigrationHistory(MigrationIdentity,ScriptFilename,ScriptSha256,DeploymentIdentifier,DurationMilliseconds,RecordingKind,BaselineEvidenceReference) VALUES(@id,@file,@hash,@deployment,@duration,@kind,@evidence)",transaction); + insert.Parameters.AddWithValue("@id",identity); + insert.Parameters.AddWithValue("@file",filename); + insert.Parameters.AddWithValue("@hash",expected); + insert.Parameters.AddWithValue("@deployment",deployment); + var baseline = S(migration,"mode")=="baseline"; + insert.Parameters.AddWithValue("@duration",baseline ? DBNull.Value : stopwatch.ElapsedMilliseconds); + insert.Parameters.AddWithValue("@kind",baseline ? "Baselined" : "Executed"); + insert.Parameters.AddWithValue("@evidence",baseline ? S(migration,"evidence") : DBNull.Value); + await insert.ExecuteNonQueryAsync(); + await transaction.CommitAsync(); + currentMigration=null; + currentBatch=0; + } + catch { try { await transaction.RollbackAsync(); } catch { } throw; } + } + + private static async Task Conditions(JsonArray conditions, SqlTransaction? transaction = null) + { + foreach (var node in conditions) + { + var c = node!.AsObject(); + string sql = S(c,"kind") switch { + "object" => "SELECT CASE WHEN OBJECT_ID(@name,@type) IS NOT NULL THEN 1 ELSE 0 END", + "column" => "SELECT CASE WHEN COL_LENGTH(@name,@column) IS NOT NULL THEN 1 ELSE 0 END", + "module_sha256" => "SELECT LOWER(CONVERT(varchar(64),HASHBYTES('SHA2_256',CONVERT(varbinary(max),OBJECT_DEFINITION(OBJECT_ID(@name)))),2))", + "solver_graph" => "SELECT CASE WHEN COUNT(*)=1 THEN MIN(LOWER(CONVERT(varchar(64),HASHBYTES('SHA2_256',CONVERT(varbinary(max),GraphJson)),2))) ELSE NULL END FROM dbo.WritingSolverVersions WHERE Active=1 AND Version=@version", + _ => throw new InvalidOperationException("condition-kind") + }; + using var cmd = Command(sql,transaction); + if(c["name"] is not null)cmd.Parameters.AddWithValue("@name",S(c,"name")); + if(c["version"] is not null)cmd.Parameters.AddWithValue("@version",S(c,"version")); + if (c["type"] is not null) cmd.Parameters.AddWithValue("@type",S(c,"type")); + if (c["column"] is not null) cmd.Parameters.AddWithValue("@column",S(c,"column")); + var actual = await cmd.ExecuteScalarAsync(); + if (S(c,"kind") is "module_sha256" or "solver_graph" ? actual is not string hash || hash!=S(c,"sha256") : Convert.ToInt32(actual)!=1) + throw new InvalidOperationException("condition-failed"); + } + } + + private static async Task Schema() + { + // Object-name ordered, independent of restore-assigned object IDs and data. + // History is excluded so records do not change the application's schema ID. + const string filter = "t.name NOT IN ('DatabaseMigrationHistory','ApplicationReleaseHistory')"; + var queries = new[] { + $"SELECT s.name AS [schema],t.name,c.name AS [column],c.column_id,TYPE_NAME(c.user_type_id) AS [type],c.max_length,c.precision,c.scale,c.is_nullable,c.is_identity,c.is_computed,OBJECT_DEFINITION(c.default_object_id) AS [default],cc.definition AS computed FROM sys.tables t JOIN sys.schemas s ON s.schema_id=t.schema_id JOIN sys.columns c ON c.object_id=t.object_id LEFT JOIN sys.computed_columns cc ON cc.object_id=c.object_id AND cc.column_id=c.column_id WHERE {filter} ORDER BY s.name,t.name,c.column_id FOR JSON PATH,INCLUDE_NULL_VALUES", + "SELECT OBJECT_SCHEMA_NAME(m.object_id) AS [schema],o.name,o.type,REPLACE(m.definition,CHAR(13),'') AS definition,m.uses_ansi_nulls,m.uses_quoted_identifier FROM sys.sql_modules m JOIN sys.objects o ON o.object_id=m.object_id ORDER BY OBJECT_SCHEMA_NAME(m.object_id),o.name FOR JSON PATH,INCLUDE_NULL_VALUES", + $"SELECT s.name AS [schema],t.name,CASE WHEN EXISTS(SELECT 1 FROM sys.key_constraints k WHERE k.parent_object_id=i.object_id AND k.unique_index_id=i.index_id AND k.is_system_named=1) THEN NULL ELSE i.name END AS [index],i.type,i.is_unique,i.is_primary_key,i.is_disabled,i.has_filter,i.filter_definition,c.name AS [column],ic.key_ordinal,ic.is_descending_key,ic.is_included_column FROM sys.tables t JOIN sys.schemas s ON s.schema_id=t.schema_id JOIN sys.indexes i ON i.object_id=t.object_id JOIN sys.index_columns ic ON ic.object_id=i.object_id AND ic.index_id=i.index_id JOIN sys.columns c ON c.object_id=ic.object_id AND c.column_id=ic.column_id WHERE {filter} ORDER BY s.name,t.name,i.index_id,ic.index_column_id FOR JSON PATH,INCLUDE_NULL_VALUES", + $"SELECT s.name AS [schema],t.name AS [table],CASE WHEN COALESCE(f.is_system_named,ck.is_system_named,dc.is_system_named,kc.is_system_named,0)=1 THEN NULL ELSE o.name END AS [constraint],o.type,OBJECT_DEFINITION(o.object_id) AS definition,f.is_disabled AS fk_disabled,f.is_not_trusted AS fk_untrusted,ck.is_disabled AS check_disabled,ck.is_not_trusted AS check_untrusted,(SELECT pc.name AS parent_column,OBJECT_SCHEMA_NAME(fc.referenced_object_id) AS referenced_schema,OBJECT_NAME(fc.referenced_object_id) AS referenced_table,rc.name AS referenced_column FROM sys.foreign_key_columns fc JOIN sys.columns pc ON pc.object_id=fc.parent_object_id AND pc.column_id=fc.parent_column_id JOIN sys.columns rc ON rc.object_id=fc.referenced_object_id AND rc.column_id=fc.referenced_column_id WHERE fc.constraint_object_id=o.object_id ORDER BY fc.constraint_column_id FOR JSON PATH) AS foreign_key_columns FROM sys.tables t JOIN sys.schemas s ON s.schema_id=t.schema_id JOIN sys.objects o ON o.parent_object_id=t.object_id LEFT JOIN sys.foreign_keys f ON f.object_id=o.object_id LEFT JOIN sys.check_constraints ck ON ck.object_id=o.object_id LEFT JOIN sys.default_constraints dc ON dc.object_id=o.object_id LEFT JOIN sys.key_constraints kc ON kc.object_id=o.object_id WHERE {filter} AND o.type IN ('C','D','F','PK','UQ') ORDER BY s.name,t.name,o.type,CASE WHEN COALESCE(f.is_system_named,ck.is_system_named,dc.is_system_named,kc.is_system_named,0)=0 THEN o.name END,o.object_id FOR JSON PATH,INCLUDE_NULL_VALUES" + }; + var values = new List(); + foreach (var sql in queries) + { + using var cmd = Command(sql); + using var reader = await cmd.ExecuteReaderAsync(); + var text = new StringBuilder(); + while (await reader.ReadAsync()) text.Append(reader.GetString(0)); + values.Add(text.ToString()); + } + return Hash(Encoding.UTF8.GetBytes(string.Join("\n",values))); + } + + internal static IEnumerable Batches(string script) + { + var buffer = new StringBuilder(); + int commentDepth=0; + char quote='\0'; + foreach (var line in script.Replace("\r\n","\n").Split('\n')) + { + if (commentDepth==0 && quote=='\0' && Regex.IsMatch(line,@"^\s*GO\s*(?:--.*)?$",RegexOptions.IgnoreCase)) + { if (!string.IsNullOrWhiteSpace(buffer.ToString())) yield return buffer.ToString(); buffer.Clear(); continue; } + if (commentDepth==0 && quote=='\0' && Regex.IsMatch(line,@"^\s*(?:GO\s+\d|:|!!)",RegexOptions.IgnoreCase)) + throw new InvalidOperationException("sqlcmd-directive"); + buffer.AppendLine(line); + for(int i=0;i0) + { if(ch=='/'&&next=='*'){commentDepth++;i++;} else if(ch=='*'&&next=='/'){commentDepth--;i++;} continue; } + if(quote!='\0') + { if(ch==quote){if(next==quote)i++;else quote='\0';} continue; } + if(ch=='-'&&next=='-')break; + if(ch=='/'&&next=='*'){commentDepth++;i++;} + else if(ch=='\''||ch=='"')quote=ch; + else if(ch=='[')quote=']'; + } + } + if(quote!='\0'||commentDepth!=0)throw new InvalidOperationException("unclosed-sql-token"); + if(!string.IsNullOrWhiteSpace(buffer.ToString()))yield return buffer.ToString(); + } +} diff --git a/Tools/Deployment/QualificationHost/Program.cs b/Tools/Deployment/QualificationHost/Program.cs new file mode 100644 index 00000000..cba87077 --- /dev/null +++ b/Tools/Deployment/QualificationHost/Program.cs @@ -0,0 +1,96 @@ +using System.Security.Cryptography; +using System.Text.Json; +using Microsoft.AspNetCore.DataProtection; +using Microsoft.AspNetCore.DataProtection.Infrastructure; +using Microsoft.Data.SqlClient; +using Microsoft.Extensions.DependencyInjection.Extensions; +using Microsoft.Extensions.Options; +using Microsoft.AspNetCore.Authentication; +using System.Security.Claims; +using System.Text.Encodings.Web; + +// Test-only host. Same PlotLine assembly/controllers/Razor; no email, payment, +// OpenAI credentials or application background services. Never installed on web1. +var configPath = Environment.GetEnvironmentVariable("PD_QUALIFICATION_CONFIG") + ?? throw new InvalidOperationException("Private qualification configuration required"); +using var configDoc=JsonDocument.Parse(File.ReadAllText(configPath)); +var c=configDoc.RootElement; +var cs=new SqlConnectionStringBuilder(c.GetProperty("connection").GetString()); +if(cs.DataSource!="192.168.10.10,1433" || !cs.InitialCatalog.StartsWith("PlotDirector_Qualification_",StringComparison.Ordinal) + || !cs.UserID.StartsWith("PDQualification_",StringComparison.Ordinal)) + throw new InvalidOperationException("Not an isolated qualification identity"); +var owners=c.GetProperty("owner_ids").EnumerateArray().Select(x=>x.GetInt32()).ToHashSet(); +var requestToken=c.GetProperty("request_token").GetString()!; +if(requestToken.Length<40)throw new InvalidOperationException("Private request token required"); +using(var connection=new SqlConnection(cs.ConnectionString)) +{ + connection.Open(); + using var command=new SqlCommand("SELECT DB_NAME()",connection); + if((string?)command.ExecuteScalar()!=cs.InitialCatalog)throw new InvalidOperationException("Database identity mismatch"); +} +var contentRoot=c.GetProperty("content_root").GetString()!; +var dll=Path.Combine(contentRoot,"PlotLine.dll"); +var expected=c.GetProperty("dll_sha256").GetString(); +if(Convert.ToHexStringLower(SHA256.HashData(File.ReadAllBytes(dll)))!=expected + || Convert.ToHexStringLower(SHA256.HashData(File.ReadAllBytes(typeof(PlotLine.Program).Assembly.Location)))!=expected) + throw new InvalidOperationException("Application assembly differs from qualified payload"); +var keys=c.GetProperty("keys_path").GetString()!; +var url=c.GetProperty("url").GetString()!; +if(!url.StartsWith("http://127.0.0.1:",StringComparison.Ordinal))throw new InvalidOperationException("Loopback binding required"); +var values=new Dictionary { + ["ConnectionStrings:DefaultConnection"]=cs.ConnectionString, + ["Storage:UploadsRoot"]=c.GetProperty("uploads_path").GetString(), + ["DataProtection:KeysPath"]=keys, + ["Site:PublicBaseUrl"]=url, + ["EmailSettings:SmtpServer"]="127.0.0.1",["EmailSettings:Port"]="1", + ["EmailSettings:Username"]="",["EmailSettings:Password"]="", + ["EmailSettings:FromAddress"]="qualification@example.invalid", + ["Stripe:PublishableKey"]="",["Stripe:SecretKey"]="",["Stripe:WebhookSecret"]="", + ["OpenAI:ApiKey"]="",["Geography:Enabled"]="false", + ["StoryIntelligence:WorkersEnabled"]="false",["Illustrations:GenerationWorkerEnabled"]="false", + ["WritingSolver:EnableIndexing"]="false", + ["Features:ParagraphManuscripts"]="true" +}; +var app=PlotLine.Program.BuildApplication(["--applicationName=PlotLine","--environment=Qualification", + "--contentRoot="+contentRoot,"--urls="+url,"--DataProtection:KeysPath="+keys],builder=>{ + builder.Configuration.Sources.Clear(); + builder.Configuration.AddInMemoryCollection(values); + // Removes retention, email, geocoding, native expiry, AI, presence and notification + // workers. The web host is registered when Build() completes. + builder.Services.RemoveAll(); + builder.Services.ConfigureHttpClientDefaults(http=>http.ConfigurePrimaryHttpMessageHandler(()=>new NoExternalRequests())); + builder.Services.AddSingleton(owners); + builder.Services.AddSingleton(new QualificationToken(requestToken)); + builder.Services.AddAuthentication(options=>{ + options.DefaultAuthenticateScheme="Qualification"; options.DefaultChallengeScheme="Qualification"; + }).AddScheme("Qualification",_=>{}); +}); +app.Urls.Clear();app.Urls.Add(url); +app.MapGet("/qualification/transport",(HttpContext context)=>Results.Json(new {scheme=context.Request.Scheme})); +Console.WriteLine("QUALIFICATION_HOST isolated database identity and binary checksum verified; all application workers disabled."); +await app.RunAsync(); + +internal sealed class NoExternalRequests:HttpMessageHandler +{ + protected override Task SendAsync(HttpRequestMessage request,CancellationToken cancellationToken) + => throw new InvalidOperationException("Outbound HTTP disabled in qualification"); +} + +// Explicit clone-only test authentication, absent from PlotLine/production binaries. +// Loopback binding and SQL identity guards above are mandatory before registration. +internal sealed record QualificationToken(string Value); +internal sealed class QualificationAuthentication(IOptionsMonitor options, + ILoggerFactory logger,UrlEncoder encoder,HashSet owners,QualificationToken token) + :AuthenticationHandler(options,logger,encoder) +{ + protected override Task HandleAuthenticateAsync() + { + var supplied=System.Text.Encoding.UTF8.GetBytes(Request.Headers["X-Qualification-Token"].ToString()); + if(!CryptographicOperations.FixedTimeEquals(supplied,System.Text.Encoding.UTF8.GetBytes(token.Value)) + || !int.TryParse(Request.Headers["X-Qualification-Author"],out var owner)||!owners.Contains(owner)) + return Task.FromResult(AuthenticateResult.NoResult()); + var identity=new ClaimsIdentity([new Claim(ClaimTypes.NameIdentifier,owner.ToString()), + new Claim(ClaimTypes.Name,"Isolated qualification")],Scheme.Name); + return Task.FromResult(AuthenticateResult.Success(new AuthenticationTicket(new ClaimsPrincipal(identity),Scheme.Name))); + } +} diff --git a/Tools/Deployment/QualificationHost/QualificationHost.csproj b/Tools/Deployment/QualificationHost/QualificationHost.csproj new file mode 100644 index 00000000..2e67419e --- /dev/null +++ b/Tools/Deployment/QualificationHost/QualificationHost.csproj @@ -0,0 +1,10 @@ + + + net10.0 + enable + enable + + + + + diff --git a/Tools/Deployment/README.md b/Tools/Deployment/README.md new file mode 100644 index 00000000..375f4f0f --- /dev/null +++ b/Tools/Deployment/README.md @@ -0,0 +1,10 @@ +# Production deployment tooling + +Phase 1 implementation and qualification live here. Do not install on a production +host until the qualification report says READY and Phase 2 has been authorised. +See `Docs/Deployment/Production.md` for the trust model and operational procedure. + +The release package is data, never a privileged executable. Atlas prepares it from +a clean Git commit. An administrator installs the helper, database worker, target +configuration and independent release-verification public key. The transfer account +can submit signed packages but cannot change the helper, trust anchor or target. diff --git a/Tools/Deployment/activate.py b/Tools/Deployment/activate.py new file mode 100644 index 00000000..9d52a120 --- /dev/null +++ b/Tools/Deployment/activate.py @@ -0,0 +1,299 @@ +#!/usr/bin/python3 -I +"""Restricted activation entry point; install with release.py in a root-owned directory.""" +import fcntl +import grp +import json +import os +from pathlib import Path +import pwd +import shutil +import socket +import stat +import subprocess +import sys +import tempfile +import time +import uuid + +from release import Refused, canonical, file_digest, keys, load, require, safe_name, verify_bundle + +CONFIG = Path('/etc/plotdirector-deployment/target.json') +SAFE_ENV = {'PATH': '/usr/sbin:/usr/bin:/sbin:/bin', 'LANG': 'C.UTF-8', 'HOME': '/nonexistent', 'DOTNET_NOLOGO': '1'} + + +def protected(path, directory=False, secret=False): + path = Path(path) + require(path.is_absolute(), 'Absolute protected path required') + for parent in reversed(path.parents): + info = parent.lstat() + require(stat.S_ISDIR(info.st_mode) and info.st_uid == 0 and not info.st_mode & 0o022, 'Untrusted protected path ancestor') + info = path.lstat() + require(info.st_uid == 0 and not info.st_mode & 0o022 and info.st_nlink == 1 if not directory else info.st_uid == 0 and not info.st_mode & 0o022, 'Protected path ownership/permissions invalid') + require(stat.S_ISDIR(info.st_mode) if directory else stat.S_ISREG(info.st_mode), 'Protected path type invalid') + if secret: + require(not info.st_mode & 0o007, 'Secret readable by other users') + + +def command(args, *, account=None, timeout=120): + options = {} + if account: + user = pwd.getpwnam(account) + options = {'user': user.pw_uid, 'group': user.pw_gid, 'extra_groups': []} + result = subprocess.run(args, env=SAFE_ENV, cwd='/', capture_output=True, timeout=timeout, **options) + require(result.returncode == 0, Path(args[0]).name + ' failed; diagnostic values suppressed') + return result.stdout.decode().strip() + + +class Worker: + def __init__(self, config): + protected(config['worker']) + protected(config['database_config'], secret=True) + database_config = load(config['database_config']) + require(database_config['database'] == config['database'], 'Database configuration target mismatch') + require(database_config['expected_host'] == config['host'] and database_config['expected_server'] == '127.0.0.1,1433', 'SQL server identity mismatch') + user = pwd.getpwnam(config['migration_account']) + self.process = subprocess.Popen(['/usr/bin/dotnet', config['worker'], config['database_config']], + env=SAFE_ENV, cwd='/', user=user.pw_uid, group=user.pw_gid, extra_groups=[], + stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, text=True) + self.read() + + def read(self): + # poll/read timeout is enforced at the subprocess level by an alarm below; + # SQL operations additionally have finite command timeouts in the worker. + line = self.process.stdout.readline(65537) + require(bool(line) and len(line) <= 65536, 'Database worker unavailable') + answer = json.loads(line) + require(answer.get('ok'), 'Database operation refused: ' + str(answer.get('error', 'unknown')) + + ' migration=' + str(answer.get('migration', 'none')) + ' batch=' + str(answer.get('batch', 0))) + return answer.get('result', answer) + + def call(self, op, **values): + self.process.stdin.write(json.dumps({'op': op, **values}) + '\n') + self.process.stdin.flush() + return self.read() + + def close(self): + if self.process.poll() is None: + self.process.stdin.close() + try: + self.process.wait(timeout=10) + except subprocess.TimeoutExpired: + self.process.kill() + self.process.wait() + + +def configuration(): + require(os.geteuid() == 0, 'Restricted sudo invocation required') + protected(CONFIG, secret=True) + cfg = load(CONFIG) + keys(cfg, ('format', 'host', 'environment', 'database', 'root', 'inbox', 'evidence', 'backup', + 'service', 'runtime_account', 'migration_account', 'worker', 'database_config', + 'public_key', 'minimum_free_bytes', 'health_base', 'runtime_config')) + require(cfg['format'] == 1 and cfg['host'] == socket.gethostname(), 'Wrong deployment host') + require(cfg['environment'] in ('Production', 'Test', 'Development'), 'Invalid environment') + require(cfg['root'] == '/srv/plotdirector' and cfg['inbox'] == '/srv/plotdirector/incoming' + and cfg['evidence'] == '/srv/plotdirector/deployment-evidence' + and cfg['service'] == 'plotdirector.service' and cfg['runtime_account'] == 'plotdirector' + and cfg['migration_account'] == 'plotdirector-migrate' + and cfg['database'] == 'PlotLine' and cfg['backup'] == '/srv/backups/sql' + and cfg['runtime_config'] == '/etc/plotdirector/plotdirector.env' + and cfg['health_base'] == 'http://127.0.0.1:5001', 'Unexpected target layout') + require(cfg['environment'] == 'Production', 'This installed entry point is production-specific; use the same core in the isolated qualification driver') + for p in (cfg['root'], cfg['root'] + '/releases', cfg['evidence']): + protected(p, directory=True) + for p in (cfg['public_key'], cfg['worker']): + protected(p) + protected(cfg['runtime_config'], secret=True) + for p in ('/usr/bin/dotnet', '/usr/bin/openssl', '/usr/bin/systemctl', '/usr/bin/curl'): + require(os.access(p, os.X_OK), 'Required executable unavailable') + require(isinstance(cfg['minimum_free_bytes'], int) and cfg['minimum_free_bytes'] >= 1024**3, 'Invalid disk-space floor') + require(command(['/usr/bin/systemctl', 'show', cfg['service'], '-p', 'User', '--value']) == cfg['runtime_account'], 'Runtime identity mismatch') + require(command(['/usr/bin/systemctl', 'show', cfg['service'], '-p', 'WorkingDirectory', '--value']) == cfg['root'] + '/current', 'Service content root mismatch') + executable = command(['/usr/bin/systemctl', 'show', cfg['service'], '-p', 'ExecStart', '--value']) + require('path=/usr/bin/dotnet ;' in executable and + 'argv[]=/usr/bin/dotnet ' + cfg['root'] + '/current/PlotLine.dll' in executable, + 'Service executable mismatch') + require(command(['/usr/bin/systemctl', 'show', cfg['service'], '-p', 'EnvironmentFiles', '--value']).split()[0] == cfg['runtime_config'], 'Service environment file mismatch') + protected(cfg['database_config'], secret=True) + database_config = load(cfg['database_config']) + require(database_config['database'] == cfg['database'], 'Database configuration target mismatch') + for base in (cfg['root'], cfg['backup']): + require(shutil.disk_usage(base).free >= cfg['minimum_free_bytes'], 'Insufficient free space') + return cfg + + +def install(payload, destination, runtime_group): + require(not destination.exists() and not destination.is_symlink(), 'Release already installed; use a new release identifier') + gid = grp.getgrnam(runtime_group).gr_gid + destination.mkdir(mode=0o750) + for source in sorted(payload.rglob('*')): + relative = source.relative_to(payload) + target = destination / relative + if source.is_dir(): + target.mkdir(mode=0o750) + else: + require(source.is_file() and not source.is_symlink(), 'Invalid payload entry') + with source.open('rb') as src, target.open('xb') as out: + shutil.copyfileobj(src, out) + target.chmod(0o440) + os.chown(target, 0, gid) + os.chown(destination, 0, gid) + + +def switch(root, target, deployment): + current = root / 'current' + if current.exists() or current.is_symlink(): + require(current.is_symlink(), 'current must be a symlink; initial provisioning is separate') + old = current.resolve(strict=True) + require(old.is_relative_to(root / 'releases') and old.name == 'app', 'Unsafe previous release') + pending = root / ('.current-' + deployment) + os.symlink(str(target), pending) + os.replace(pending, current) + fd = os.open(root, os.O_RDONLY | os.O_DIRECTORY) + try: + os.fsync(fd) + finally: + os.close(fd) + + +def health(cfg, destination, manifest, worker): + require(command(['/usr/bin/systemctl', 'is-active', cfg['service']]) == 'active', 'Service inactive') + for path in ('/', '/Account/Login'): + for attempt in range(20): + try: + status = command(['/usr/bin/curl', '--silent', '--show-error', '--noproxy', '*', '--connect-timeout', '2', + '--max-time', '5', '--output', '/dev/null', '--write-out', '%{http_code}', cfg['health_base'] + path], account=cfg['runtime_account'], timeout=10) + if status in ('200', '301', '302', '307', '308'): + break + except Refused: + pass + time.sleep(1) + else: + raise Refused('Application HTTP health check failed') + require((Path(cfg['root']) / 'current').resolve(strict=True) == destination / 'app', 'Active release identity mismatch') + require(file_digest(destination / 'app/PlotLine.dll') == manifest['files']['app/PlotLine.dll'], 'Installed DLL checksum mismatch') + identity = json.loads(command(['/usr/bin/curl', '--silent', '--show-error', '--fail', '--noproxy', '*', + '--connect-timeout', '2', '--max-time', '10', cfg['health_base'] + '/_deployment/health'], + account=cfg['runtime_account'], timeout=15)) + require(identity.get('healthy') is True and identity.get('version') == manifest['version'] + and identity.get('sourceCommit') == manifest['source_commit'] and identity.get('database') == cfg['database'], + 'Running application/database identity mismatch') + worker.call('health') + + +def activate(package_id, validate=False, rollback=False): + cfg = configuration() + root = Path(cfg['root']) + # A precreated protected lock file cannot be redirected by the transfer account. + lock_path = root / 'deployment.lock' + protected(lock_path, secret=True) + lock_fd = os.open(lock_path, os.O_RDWR | os.O_NOFOLLOW) + worker = None + evidence = None + stopped = False + try: + try: + fcntl.flock(lock_fd, fcntl.LOCK_EX | fcntl.LOCK_NB) + except BlockingIOError: + raise Refused('Concurrent deployment') + safe_name(package_id) + incoming = Path(cfg['inbox']) / package_id / 'package.tar' + incoming_info = incoming.lstat() + require(stat.S_ISREG(incoming_info.st_mode) and incoming_info.st_nlink == 1, 'Unsafe incoming package') + require(shutil.disk_usage(root).free >= cfg['minimum_free_bytes'] + 4 * incoming_info.st_size, + 'Insufficient snapshot/extraction/installation space') + with tempfile.TemporaryDirectory(prefix='.deployment-', dir=str(root)) as work: + os.chmod(work, 0o750) + os.chown(work, 0, grp.getgrnam(cfg['migration_account']).gr_gid) + manifest, authorization, payload = verify_bundle(Path(cfg['inbox']) / package_id, work, cfg['public_key']) + require(manifest['release_id'] == package_id, 'Package identifier mismatch') + size = sum(x.stat().st_size for x in payload.rglob('*') if x.is_file()) + require(shutil.disk_usage(root).free >= cfg['minimum_free_bytes'] + 2 * size, 'Insufficient release/snapshot space') + for path in [payload, *payload.rglob('*')]: + os.chown(path, 0, grp.getgrnam(cfg['migration_account']).gr_gid) + path.chmod(0o750 if path.is_dir() else 0o640) + deployment = time.strftime('%Y%m%dT%H%M%SZ', time.gmtime()) + '-' + uuid.uuid4().hex[:12] + evidence = Path(cfg['evidence']) / (deployment + '.jsonl') + def event(phase, **data): + with evidence.open('a') as stream: + stream.write(canonical({'utc': time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime()), 'deployment': deployment, 'release': package_id, 'phase': phase, **data}).decode()) + stream.flush() + os.fsync(stream.fileno()) + event('validated', package_sha256=authorization['package_sha256']) + worker = Worker(cfg) + beginning = worker.call('begin', package_root=str(payload), deployment_id=deployment, package_sha256=authorization['package_sha256']) + if rollback: + require(beginning.get('complete') is True, 'Rollback requires all migration history already present; SQL changes are forbidden') + if validate: + event('validation-only') + print('VALIDATED ' + package_id + '; no backup, migrations or service operations performed') + return + backup_name = 'PlotLine-predeploy-' + deployment + '.bak' + backup = Path(cfg['backup']) / backup_name + require(not backup.exists() and not backup.is_symlink(), 'Backup path already exists') + event('backup-start') + worker.call('backup', path=str(backup)) + require(backup.is_file() and backup.stat().st_size > 0, 'Verified backup file unavailable') + event('backup-verified', path=str(backup)) + worker.call('idle') + command(['/usr/bin/systemctl', 'stop', cfg['service']]) + stopped = True + require(command(['/usr/bin/systemctl', 'show', cfg['service'], '-p', 'ActiveState', '--value']) == 'inactive', 'Service did not stop') + worker.call('idle') + event('migration-start') + worker.call('migrate') + event('migration-complete') + destination = root / 'releases' / package_id + install(payload, destination, cfg['runtime_account']) + # Successful release history contains the predecessor SUCCESS, not merely + # the symlink target left by a failed activation. + active_file = root / 'active-deployment.json' + previous = load(active_file)['deployment'] if active_file.exists() else None + event('activation-start', previous_deployment=previous) + switch(root, destination / 'app', deployment) + command(['/usr/bin/systemctl', 'start', cfg['service']]) + health(cfg, destination, manifest, worker) + event('health-passed') + worker.call('activated', evidence=str(evidence), kind='Rollback' if rollback else 'Deploy', previous_deployment=previous) + pending = root / ('.active-' + deployment) + pending.write_bytes(canonical({'deployment': deployment, 'release': package_id, 'package_sha256': authorization['package_sha256']})) + os.replace(pending, active_file) + event('successful') + stopped = False + print('ACTIVATED ' + package_id + ' deployment=' + deployment + ' evidence=' + str(evidence)) + except Exception as error: + if stopped: + try: + command(['/usr/bin/systemctl', 'stop', cfg['service']]) + except Exception: + pass + if evidence is not None: + with evidence.open('a') as stream: + stream.write(canonical({'phase': 'failed', 'error': str(error) if isinstance(error, Refused) else type(error).__name__, + 'service_stop_requested': stopped, 'recovery': 'Operator review required; no automatic database rollback.'}).decode()) + raise + finally: + if worker is not None: + worker.close() + os.close(lock_fd) + + +def main(): + os.umask(0o077) + # Ignore inherited Python/environment search paths; installed launcher uses -I. + import signal + signal.signal(signal.SIGALRM, lambda *_: (_ for _ in ()).throw(Refused('Deployment timeout'))) + signal.alarm(7200) + args = sys.argv[1:] + validate = len(args) == 2 and args[0] == '--validate' + rollback = len(args) == 2 and args[0] == '--rollback' + require(len(args) == 1 or validate or rollback, 'Usage: deploy-plotdirector [--validate|--rollback] ') + activate(args[-1], validate, rollback) + + +if __name__ == '__main__': + try: + main() + except Exception as error: + print('DEPLOYMENT REFUSED: ' + (str(error) if isinstance(error, Refused) else type(error).__name__)) + sys.exit(1) diff --git a/Tools/Deployment/deploy-plotdirector b/Tools/Deployment/deploy-plotdirector new file mode 100644 index 00000000..940ca3f7 --- /dev/null +++ b/Tools/Deployment/deploy-plotdirector @@ -0,0 +1,12 @@ +#!/bin/sh +# Install root:root 0755. Fixed import path under a root-owned, non-writable tree. +exec /usr/bin/env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin LANG=C.UTF-8 /usr/bin/python3 -I -c ' +import sys +sys.path.insert(0, "/usr/local/lib/plotdirector-deployment") +from activate import main, Refused +try: + main() +except Exception as error: + print("DEPLOYMENT REFUSED: " + (str(error) if isinstance(error, Refused) else type(error).__name__)) + sys.exit(1) +' "$@" diff --git a/Tools/Deployment/provision/nginx-plotdirector-map.conf b/Tools/Deployment/provision/nginx-plotdirector-map.conf new file mode 100644 index 00000000..086c728f --- /dev/null +++ b/Tools/Deployment/provision/nginx-plotdirector-map.conf @@ -0,0 +1,5 @@ +# Phase 2: /etc/nginx/conf.d/plotdirector-websocket-map.conf (http context). +map $http_upgrade $plotdirector_connection_upgrade { + default upgrade; + '' close; +} diff --git a/Tools/Deployment/provision/nginx-plotdirector.conf b/Tools/Deployment/provision/nginx-plotdirector.conf new file mode 100644 index 00000000..fc0941b4 --- /dev/null +++ b/Tools/Deployment/provision/nginx-plotdirector.conf @@ -0,0 +1,35 @@ +# Phase 2: /etc/nginx/sites-available/plotdirector (no default_server). +# Certificate must already be valid for both hostnames. Do not edit Catherine's vhost. +server { + listen 80; + listen [::]:80; + server_name plotdirector.com www.plotdirector.com; + return 301 https://plotdirector.com$request_uri; +} +server { + listen 443 ssl; + listen [::]:443 ssl; + server_name www.plotdirector.com; + ssl_certificate /etc/letsencrypt/live/plotdirector.com/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/plotdirector.com/privkey.pem; + return 301 https://plotdirector.com$request_uri; +} +server { + listen 443 ssl; + listen [::]:443 ssl; + server_name plotdirector.com; + ssl_certificate /etc/letsencrypt/live/plotdirector.com/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/plotdirector.com/privkey.pem; + client_max_body_size 110m; + location / { + proxy_pass http://127.0.0.1:5001; + proxy_http_version 1.1; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $plotdirector_connection_upgrade; + proxy_read_timeout 3600s; + proxy_buffering off; + } +} diff --git a/Tools/Deployment/provision/plotdirector-deploy.sudoers b/Tools/Deployment/provision/plotdirector-deploy.sudoers new file mode 100644 index 00000000..cae37b14 --- /dev/null +++ b/Tools/Deployment/provision/plotdirector-deploy.sudoers @@ -0,0 +1,2 @@ +Defaults:plotdirector-deploy env_reset, !setenv +plotdirector-deploy ALL=(root) NOSETENV: NOPASSWD: /usr/local/sbin/deploy-plotdirector diff --git a/Tools/Deployment/provision/plotdirector.service b/Tools/Deployment/provision/plotdirector.service new file mode 100644 index 00000000..8d4c510e --- /dev/null +++ b/Tools/Deployment/provision/plotdirector.service @@ -0,0 +1,34 @@ +[Unit] +Description=PlotDirector production application +After=network.target mssql-server.service +Requires=mssql-server.service + +[Service] +Type=simple +User=plotdirector +Group=plotdirector +WorkingDirectory=/srv/plotdirector/current +ExecStart=/usr/bin/dotnet /srv/plotdirector/current/PlotLine.dll --contentRoot=/srv/plotdirector/current +Environment=ASPNETCORE_ENVIRONMENT=Production +Environment=ASPNETCORE_URLS=http://127.0.0.1:5001 +Environment=DOTNET_NOLOGO=1 +EnvironmentFile=/etc/plotdirector/plotdirector.env +Restart=on-failure +RestartSec=10 +UMask=0027 +NoNewPrivileges=true +ProtectSystem=strict +ProtectHome=true +PrivateTmp=true +PrivateDevices=true +ProtectKernelTunables=true +ProtectControlGroups=true +RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX +ReadWritePaths=/srv/plotdirector/shared +InaccessiblePaths=-/srv/catherinelynwood -/etc/catherinelynwood -/srv/backups -/etc/sql-backup +StandardOutput=journal +StandardError=journal +SyslogIdentifier=plotdirector + +[Install] +WantedBy=multi-user.target diff --git a/Tools/Deployment/provision/sshd-plotdirector.conf b/Tools/Deployment/provision/sshd-plotdirector.conf new file mode 100644 index 00000000..f3f11881 --- /dev/null +++ b/Tools/Deployment/provision/sshd-plotdirector.conf @@ -0,0 +1,11 @@ +# Phase 2 only. Validate sshd -t and keep administrator session open before reload. +Match User plotdirector-deploy + AuthorizedKeysFile /etc/ssh/authorized_keys/plotdirector-deploy + AuthenticationMethods publickey + PasswordAuthentication no + KbdInteractiveAuthentication no + ForceCommand /usr/local/lib/plotdirector-deployment/ssh_dispatch.py + PermitTTY no + DisableForwarding yes + PermitUserRC no +Match all diff --git a/Tools/Deployment/provision/target.example.json b/Tools/Deployment/provision/target.example.json new file mode 100644 index 00000000..d4c5f9fb --- /dev/null +++ b/Tools/Deployment/provision/target.example.json @@ -0,0 +1,19 @@ +{ + "format": 1, + "host": "web1", + "environment": "Production", + "database": "PlotLine", + "root": "/srv/plotdirector", + "inbox": "/srv/plotdirector/incoming", + "evidence": "/srv/plotdirector/deployment-evidence", + "backup": "/srv/backups/sql", + "service": "plotdirector.service", + "runtime_account": "plotdirector", + "migration_account": "plotdirector-migrate", + "worker": "/usr/local/lib/plotdirector-deployment/database/DatabaseWorker.dll", + "database_config": "/etc/plotdirector-deployment/database.json", + "public_key": "/etc/plotdirector-deployment/release-signing-public.pem", + "minimum_free_bytes": 2147483648, + "health_base": "http://127.0.0.1:5001", + "runtime_config": "/etc/plotdirector/plotdirector.env" +} diff --git a/Tools/Deployment/qualify.py b/Tools/Deployment/qualify.py new file mode 100644 index 00000000..7668c5e3 --- /dev/null +++ b/Tools/Deployment/qualify.py @@ -0,0 +1,129 @@ +#!/usr/bin/env python3 +"""Repeat the reviewed SQL upgrade on two fresh Atlas-only database copies. + +Recovered backups/configurations and all outputs must be private, outside Git. +No Production connection strings, Docker hosts or database names are accepted. +""" +import argparse +import hashlib +import json +import os +from pathlib import Path +import re +import subprocess +import sys +import uuid +from release import Refused, canonical, file_digest, load, require + +DOCKER=['docker','--host','unix:///var/run/docker.sock'] +CONTAINER='atlas-sql-server' +ENDPOINT='192.168.10.10,1433' + + +class Session: + def __init__(self,worker,config): + self.process=subprocess.Popen(['dotnet',str(worker),str(config)],stdin=subprocess.PIPE, + stdout=subprocess.PIPE,stderr=subprocess.DEVNULL,text=True) + self.read() + def read(self): + line=self.process.stdout.readline() + require(bool(line),'Database worker exited') + value=json.loads(line) + require(value.get('ok'),'Qualification blocked: '+str(value.get('error'))+' migration='+str(value.get('migration'))+' batch='+str(value.get('batch'))) + return value.get('result',value) + def call(self,op,**data): + self.process.stdin.write(json.dumps({'op':op,**data})+'\n');self.process.stdin.flush() + return self.read() + def close(self): + if self.process.poll() is None: + self.process.stdin.close() + try:self.process.wait(timeout=15) + except subprocess.TimeoutExpired:self.process.kill();self.process.wait() + + +def main(): + parser=argparse.ArgumentParser(description=__doc__) + for option in ('backup','backup-sha256','source','package','worker','output','database-prefix'): + parser.add_argument('--'+option,required=True) + args=parser.parse_args();os.umask(0o077) + require(re.fullmatch(r'PlotDirector_Qualification_[A-Za-z0-9_]{1,65}',args.database_prefix),'Qualification database prefix required') + require(re.fullmatch(r'[a-f0-9]{64}',args.backup_sha256),'Backup checksum required') + source=Path(args.source).resolve();output=Path(args.output).resolve();package=Path(args.package).resolve() + require(not output.exists(),'Qualification output already exists; refuses overwrite') + require(file_digest(args.backup)==args.backup_sha256,'Backup checksum mismatch') + require(not subprocess.check_output(['git','-C',str(source),'status','--porcelain'],text=True).strip(),'Source is not clean') + commit=subprocess.check_output(['git','-C',str(source),'rev-parse','HEAD'],text=True).strip() + manifest=load(package/'manifest.json') + require(manifest['source_commit']==commit,'Plan source differs from clean source') + require(commit.encode() in Path(args.worker).read_bytes(),'Worker was not built from the clean source commit') + metadata=json.loads(subprocess.check_output(DOCKER+['inspect',CONTAINER]))[0] + ports=metadata['HostConfig']['PortBindings'].get('1433/tcp') + require(ports==[{'HostIp':'192.168.10.10','HostPort':'1433'}],'Unexpected Atlas SQL endpoint') + require(any(m['Source']=='/sql/mssql' and m['Destination']=='/var/opt/mssql' for m in metadata['Mounts']),'Unexpected SQL storage mapping') + values=dict(x.split('=',1) for x in metadata['Config']['Env'] if '=' in x) + password=values.get('MSSQL_SA_PASSWORD',values.get('SA_PASSWORD')) + require(bool(password),'Atlas qualification administrator unavailable') + output.mkdir(parents=True,mode=0o700) + unique=uuid.uuid4().hex + media='/var/opt/mssql/backup/qualification-original-'+unique+'.bak' + host_media=Path('/sql/mssql/backup')/Path(media).name + # docker cp never overwrites an existing media path. UUID collision is refused. + require(subprocess.run(DOCKER+['exec',CONTAINER,'test','-e',media]).returncode!=0,'Media destination already exists') + subprocess.run(DOCKER+['cp',str(Path(args.backup).resolve()),CONTAINER+':'+media],check=True,stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL) + subprocess.run(DOCKER+['exec','-u','0',CONTAINER,'chown','mssql:mssql',media],check=True) + subprocess.run(DOCKER+['exec','-u','0',CONTAINER,'chmod','600',media],check=True) + def sql(text): + r=subprocess.run(DOCKER+['exec','-i','-e','SQLCMDPASSWORD',CONTAINER,'/opt/mssql-tools18/bin/sqlcmd', + '-S','localhost','-U','sa','-C','-I','-b','-l','10','-t','1800','-y','0'],input=text,text=True,capture_output=True, + env={**os.environ,'SQLCMDPASSWORD':password}) + (output/'private-sql-diagnostic.txt').write_text(r.stdout+r.stderr) + require(r.returncode==0,'SQL restore/inspection failed; diagnostic retained privately') + return r.stdout + sql(f"RESTORE VERIFYONLY FROM DISK=N'{media}' WITH CHECKSUM;") + listing=sql(f"RESTORE FILELISTONLY FROM DISK=N'{media}';") + # Restored PlotLine backup has these independently verified logical file names. + # Other media must be reviewed rather than guessed or restored with REPLACE. + require('PlotLine ' in listing and 'PlotLine_log ' in listing,'Unexpected logical backup file names') + results=[] + try: + for ordinal in (1,2): + database=args.database_prefix+'_'+str(ordinal) + sql(f"IF DB_ID(N'{database}') IS NOT NULL THROW 51000,'Refusing existing qualification database',1; RESTORE DATABASE [{database}] FROM DISK=N'{media}' WITH MOVE N'PlotLine' TO N'/var/opt/mssql/data/{database}.mdf',MOVE N'PlotLine_log' TO N'/var/opt/mssql/data/{database}_log.ldf',RECOVERY,CHECKSUM; ALTER AUTHORIZATION ON DATABASE::[{database}] TO [sa]; ALTER DATABASE [{database}] SET TRUSTWORTHY OFF; ALTER DATABASE [{database}] SET DB_CHAINING OFF;") + escaped=password.replace('"','""') + config={'database':database,'expected_host':'atlas','expected_server':ENDPOINT,'connection':f'Server={ENDPOINT};Database={database};User ID=sa;Password="{escaped}";Encrypt=True;TrustServerCertificate=True;'} + config_path=output/(database+'.private.json');config_path.write_bytes(canonical(config)) + worker=Session(args.worker,config_path) + try: + before=worker.call('fingerprint') + start=worker.call('inspect');require(start['schema']==manifest['starting_schema_sha256'],'Restored baseline mismatch') + deployment='qualification-'+unique+'-'+str(ordinal) + worker.call('begin',package_root=str(package),deployment_id=deployment,package_sha256='0'*64) + backup='/var/opt/mssql/backup/'+deployment+'-preupgrade.bak' + require(subprocess.run(DOCKER+['exec',CONTAINER,'test','-e',backup]).returncode!=0,'Preupgrade backup exists') + worker.call('backup',path=backup) + migrated=worker.call('migrate');worker.call('health') + after=worker.call('fingerprint',original=before) + changes=[name for name in before if before[name]!=after.get(name)] + require(not changes,'Unexplained business-data changes: '+','.join(changes)) + integrity=worker.call('integrity') + (output/(database+'-fingerprints.json')).write_bytes(canonical({'before':before,'after':after})) + results.append({'database':database,'starting_schema_sha256':start['schema'], + 'resulting_schema_sha256':migrated['schema'],'original_tables':len(before), + 'original_rows':sum(t['rows'] for t in before.values()),'all_original_fingerprints_equal':True, + 'fingerprint_sha256':hashlib.sha256(canonical(before)).hexdigest(),'integrity':integrity}) + finally:worker.close() + print('QUALIFIED '+database+'; original business data unchanged') + require(results[0]['resulting_schema_sha256']==results[1]['resulting_schema_sha256'],'Non-reproducible resulting schema') + (output/'database-qualification.json').write_bytes(canonical({'status':'passed','source_commit':commit, + 'worker_sha256':file_digest(args.worker),'backup_sha256':args.backup_sha256,'runs':results})) + except Exception: + (output/'qualification-status.json').write_bytes(canonical({'status':'blocked','completed_runs':results, + 'recovery':'Original backups/databases retained. Do not retry partial state or modify production.'})) + raise + + +if __name__=='__main__': + try:main() + except Exception as error: + print(str(error) if isinstance(error,Refused) else 'QUALIFICATION FAILED: '+type(error).__name__) + sys.exit(1) diff --git a/Tools/Deployment/release.py b/Tools/Deployment/release.py new file mode 100644 index 00000000..f94751a1 --- /dev/null +++ b/Tools/Deployment/release.py @@ -0,0 +1,343 @@ +#!/usr/bin/env python3 +"""Immutable release preparation and validation. Standard library + OpenSSL only.""" +import argparse +import hashlib +import json +import os +from pathlib import Path, PurePosixPath +import re +import stat +import subprocess +import tarfile +import tempfile + +LIMIT_BYTES = 4 * 1024**3 +LIMIT_FILES = 100000 +ID = re.compile(r'[A-Za-z0-9][A-Za-z0-9_.-]{0,99}\Z') +HASH = re.compile(r'[a-f0-9]{64}\Z') +COMMIT = re.compile(r'[a-f0-9]{40}\Z') + + +class Refused(Exception): + pass + + +def require(condition, message): + if not condition: + raise Refused(message) + + +def digest(data): + return hashlib.sha256(data).hexdigest() + + +def file_digest(path): + with Path(path).open('rb') as stream: + return hashlib.file_digest(stream, 'sha256').hexdigest() + + +def canonical(value): + return (json.dumps(value, sort_keys=True, separators=(',', ':'), ensure_ascii=True) + '\n').encode() + + +def load(path): + def unique(items): + result = {} + for key, value in items: + require(key not in result, 'Duplicate JSON key') + result[key] = value + return result + require(Path(path).stat().st_size <= 16 * 1024**2, 'Oversized JSON') + return json.loads(Path(path).read_text(), object_pairs_hook=unique) + + +def keys(value, required, optional=()): + require(isinstance(value, dict) and set(required) <= set(value) <= set(required) | set(optional), 'Invalid fields') + + +def safe_name(value): + require(isinstance(value, str) and ID.fullmatch(value) and value not in ('.', '..'), 'Invalid identifier') + return value + + +def safe_path(value): + require(isinstance(value, str) and value and '\\' not in value and not any(ord(c) < 32 or ord(c) == 127 for c in value), 'Invalid path') + p = PurePosixPath(value) + require(not p.is_absolute() and '..' not in p.parts and str(p) == value and value != '.', 'Unsafe path') + return p + + +def sha(value): + require(isinstance(value, str) and HASH.fullmatch(value), 'Invalid SHA256') + + +def conditions(items): + require(isinstance(items, list) and len(items) <= 10000, 'Invalid conditions') + for c in items: + require(isinstance(c, dict), 'Invalid condition') + kind = c.get('kind') + required = {'object': ('kind', 'name', 'type'), 'column': ('kind', 'name', 'column'), 'module_sha256': ('kind', 'name', 'sha256'), 'solver_graph': ('kind', 'version', 'sha256')}.get(kind) + require(required is not None, 'Unsupported condition') + keys(c, required) + if kind == 'solver_graph': + require(re.fullmatch(r'[A-Za-z0-9_.-]{1,100}', c['version']), 'Invalid solver version') + sha(c['sha256']) + continue + require(re.fullmatch(r'dbo\.[A-Za-z_][A-Za-z0-9_]{0,127}', c['name']), 'Invalid object name') + if kind == 'object': + require(c['type'] in ('U', 'P', 'FN', 'IF', 'TF', 'V', 'TR'), 'Invalid object type') + if kind == 'column': + require(re.fullmatch(r'[A-Za-z_][A-Za-z0-9_]{0,127}', c['column']), 'Invalid column') + if kind == 'module_sha256': + sha(c['sha256']) + + +def validate_manifest(m): + keys(m, ('format', 'release_id', 'source_commit', 'version', 'files', 'application_sha256', + 'starting_schema_sha256', 'resulting_schema_sha256', 'migrations', 'omitted_migrations', + 'prerequisites', 'postconditions', 'health', 'qualification')) + require(m['format'] == 1, 'Unsupported manifest format') + safe_name(m['release_id']) + require(COMMIT.fullmatch(m['source_commit']), 'Full source commit required') + require(isinstance(m['version'], str) and re.fullmatch(r'[A-Za-z0-9.+_-]{1,100}', m['version']), 'Invalid application version') + for field in ('application_sha256', 'starting_schema_sha256', 'resulting_schema_sha256'): + sha(m[field]) + require(isinstance(m['files'], dict) and 3 <= len(m['files']) <= LIMIT_FILES, 'Invalid file index') + for name, checksum in m['files'].items(): + p = safe_path(name) + require(p.parts[0] in ('app', 'sql', 'evidence'), 'Invalid package area') + require(not any(x.startswith('.') or x in ('App_Data', 'uploads', 'logs', 'Logs') for x in p.parts), 'Persistent/config path in package') + require(not (p.name.startswith('appsettings') and p.suffix == '.json') and p.name not in ('web.config', 'dotnet-tools.json'), 'Configuration in package') + sha(checksum) + for name in ('PlotLine.dll', 'PlotLine.deps.json', 'PlotLine.runtimeconfig.json'): + require('app/' + name in m['files'], 'Incomplete framework-dependent application') + app_index = {k: v for k, v in m['files'].items() if k.startswith('app/')} + require(digest(canonical(app_index)) == m['application_sha256'], 'Application index checksum mismatch') + conditions(m['prerequisites']) + conditions(m['postconditions']) + require(bool(m['postconditions']), 'Release database health checks required') + require(isinstance(m['migrations'], list), 'Invalid migrations') + known = set() + sql_files = set() + for step in m['migrations']: + keys(step, ('id', 'file', 'sha256', 'requires', 'mode', 'prerequisites', 'postconditions'), ('evidence',)) + identity = step['id'] + require(isinstance(identity, str) and re.fullmatch(r'[A-Za-z0-9][A-Za-z0-9_.-]{0,199}', identity), 'Invalid migration identity') + require(identity not in known, 'Duplicate migration identity') + require(isinstance(step['requires'], list) and len(set(step['requires'])) == len(step['requires']) and set(step['requires']) <= known, 'Missing or out-of-order migration dependency') + safe_path(step['file']) + require('/' not in step['file'] and step['file'].endswith('.sql') and step['file'] not in sql_files, 'Invalid migration filename') + sql_files.add(step['file']) + sha(step['sha256']) + require(m['files'].get('sql/' + step['file']) == step['sha256'], 'Migration absent from index or checksum mismatch') + require(step['mode'] in ('execute', 'baseline'), 'Non-transactional migration requires a separately reviewed recovery procedure') + if step['mode'] == 'baseline': + require(isinstance(step.get('evidence'), str) and step['evidence'].startswith('evidence/') and step['evidence'] in m['files'], 'Historical baseline evidence required') + else: + require('evidence' not in step, 'Execution cannot claim historical baseline evidence') + conditions(step['prerequisites']) + conditions(step['postconditions']) + require(bool(step['postconditions']), 'Migration postconditions required') + known.add(identity) + require({n[4:] for n in m['files'] if n.startswith('sql/')} == sql_files, 'Unapproved SQL file') + require(isinstance(m['omitted_migrations'], list), 'Invalid omitted migrations') + for omitted in m['omitted_migrations']: + keys(omitted, ('id', 'sha256', 'reason', 'evidence')) + require(omitted['id'] not in known and isinstance(omitted['reason'], str) and len(omitted['reason']) > 10, 'Invalid omitted migration') + sha(omitted['sha256']) + require(omitted['evidence'] in m['files'] and omitted['evidence'].startswith('evidence/'), 'Omission evidence missing') + known.add(omitted['id']) + require(m['health'] == ['http-root', 'http-login', 'http-deployment-identity', 'database-postconditions', 'binary-identity'], 'Unsupported health checks') + require(isinstance(m['qualification'], dict) and m['qualification'].get('status') == 'passed', 'Release is not qualified') + keys(m['qualification'], ('status', 'evidence')) + require(m['qualification']['evidence'] in m['files'] and m['qualification']['evidence'].startswith('evidence/'), 'Qualification evidence absent') + + +def qualification_identity(m, evidence): + require(evidence.get('status') == 'passed' and evidence.get('source_commit') == m['source_commit'], 'Qualification source identity mismatch') + require(evidence.get('application_dll_sha256') == m['files']['app/PlotLine.dll'], 'Qualification binary identity mismatch') + require(evidence.get('starting_schema_sha256') == m['starting_schema_sha256'] + and evidence.get('resulting_schema_sha256') == m['resulting_schema_sha256'], 'Qualification database identity mismatch') + + +def extract(archive, destination): + """Only called on a private, verified snapshot; never uses extractall.""" + destination = Path(destination) + total = 0 + names = set() + with tarfile.open(archive, 'r:') as tar: + for member in tar: + name = str(safe_path(member.name)) + require(member.isfile() and not member.pax_headers and not member.linkname, 'Archive must contain plain regular files only') + require(name not in names and len(names) < LIMIT_FILES, 'Duplicate or excessive archive entries') + names.add(name) + total += member.size + require(0 <= member.size and total <= LIMIT_BYTES, 'Archive exceeds size limit') + require(name == 'manifest.json' or PurePosixPath(name).parts[0] in ('app', 'sql', 'evidence'), 'Unexpected archive path') + out = destination / name + out.parent.mkdir(parents=True, exist_ok=True, mode=0o700) + with out.open('xb') as target, tar.extractfile(member) as source: + while block := source.read(1024**2): + target.write(block) + out.chmod(0o600) + require('manifest.json' in names, 'Missing manifest') + m = load(destination / 'manifest.json') + validate_manifest(m) + require(names == set(m['files']) | {'manifest.json'}, 'Package files differ from manifest') + for name, checksum in m['files'].items(): + require(file_digest(destination / name) == checksum, 'File checksum mismatch') + runtime = load(destination / 'app/PlotLine.runtimeconfig.json') + require(runtime.get('runtimeOptions', {}).get('tfm') == 'net10.0', 'Unexpected application runtime') + deps = load(destination / 'app/PlotLine.deps.json') + require('PlotLine/' + m['version'] in deps.get('libraries', {}), 'Application package version mismatch') + require((m['version'] + '+' + m['source_commit']).encode() in (destination / 'app/PlotLine.dll').read_bytes(), 'Assembly source commit mismatch') + qualification_identity(m, load(destination / m['qualification']['evidence'])) + return m + + +def snapshot(path, destination, max_bytes): + """Descriptor-relative, no-follow input. A changing source cannot bypass signature.""" + path = Path(path) + require(path.is_absolute(), 'Absolute source path required') + fd = os.open('/', os.O_RDONLY | os.O_DIRECTORY) + try: + for part in path.parts[1:-1]: + next_fd = os.open(part, os.O_RDONLY | os.O_DIRECTORY | os.O_NOFOLLOW, dir_fd=fd) + os.close(fd) + fd = next_fd + source_fd = os.open(path.name, os.O_RDONLY | os.O_NOFOLLOW | os.O_NONBLOCK, dir_fd=fd) + with os.fdopen(source_fd, 'rb') as source, Path(destination).open('xb') as out: + info = os.fstat(source.fileno()) + require(stat.S_ISREG(info.st_mode) and info.st_nlink == 1 and info.st_size <= max_bytes, 'Unsafe input file') + count = 0 + while data := source.read(1024**2): + count += len(data) + require(count <= max_bytes, 'Input size exceeded') + out.write(data) + finally: + os.close(fd) + + +def verify_bundle(source, work, public_key): + source, work = Path(source), Path(work) + for name, limit in (('authorization.json', 16384), ('authorization.sig', 16384), ('package.tar', LIMIT_BYTES)): + snapshot(source / name, work / name, limit) + result = subprocess.run(['/usr/bin/openssl', 'pkeyutl', '-verify', '-pubin', '-inkey', str(public_key), '-rawin', + '-in', str(work / 'authorization.json'), '-sigfile', str(work / 'authorization.sig')], + stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + require(result.returncode == 0, 'Release signature invalid') + authorization = load(work / 'authorization.json') + keys(authorization, ('format', 'release_id', 'source_commit', 'package_sha256', 'manifest_sha256')) + require(authorization['format'] == 1, 'Invalid authorization format') + safe_name(authorization['release_id']) + sha(authorization['package_sha256']) + sha(authorization['manifest_sha256']) + require(file_digest(work / 'package.tar') == authorization['package_sha256'], 'Package checksum mismatch') + payload = work / 'payload' + payload.mkdir(mode=0o700) + manifest = extract(work / 'package.tar', payload) + require(file_digest(payload / 'manifest.json') == authorization['manifest_sha256'], 'Manifest checksum mismatch') + require(manifest['release_id'] == authorization['release_id'] and manifest['source_commit'] == authorization['source_commit'], 'Authorization identity mismatch') + return manifest, authorization, payload + + +def prepare(args): + repo = Path(args.source).resolve() + commit = subprocess.check_output(['git', '-C', str(repo), 'rev-parse', 'HEAD'], text=True).strip() + require(not subprocess.check_output(['git', '-C', str(repo), 'status', '--porcelain'], text=True).strip(), 'Source must be a clean Git commit') + require(COMMIT.fullmatch(commit), 'Invalid source commit') + plan = load(args.plan) + # The plan is reviewed data; paths are only read on Atlas, never trusted as remote targets. + keys(plan, ('starting_schema_sha256', 'resulting_schema_sha256', 'migrations', 'omitted_migrations', 'prerequisites', 'postconditions', 'qualification')) + output = Path(args.output).resolve() + require(not output.exists(), 'Release destination already exists') + output.mkdir(mode=0o700, parents=True) + with tempfile.TemporaryDirectory(prefix='pd-release-', dir=str(output.parent)) as directory: + work = Path(directory) + publish = work / 'publish' + subprocess.run(['dotnet', 'publish', str(repo / 'PlotLine/PlotLine.csproj'), '-c', 'Release', '-o', str(publish), + '-p:ContinuousIntegrationBuild=true', '-p:SourceRevisionId=' + commit], check=True, + stdout=(output / 'publish.log').open('w'), stderr=subprocess.STDOUT) + require(not subprocess.check_output(['git', '-C', str(repo), 'status', '--porcelain'], text=True).strip(), 'Build changed tracked source') + files = {} + sources = {} + for path in sorted(publish.rglob('*')): + require(not path.is_symlink(), 'Publish contains symlink') + if not path.is_file(): + continue + rel = path.relative_to(publish) + if any(p.startswith('.') or p in ('App_Data', 'uploads', 'logs', 'Logs') for p in rel.parts): + continue + if (path.name.startswith('appsettings') and path.suffix == '.json') or path.name in ('web.config', 'dotnet-tools.json'): + continue + name = 'app/' + rel.as_posix() + files[name] = file_digest(path) + sources[name] = path + for migration in plan['migrations']: + filename = str(safe_path(migration['file'])) + require('/' not in filename, 'Invalid SQL source name') + # Historical non-numeric release SQL may be staged separately in the reviewed SQL input directory. + path = Path(args.sql) / filename + require(path.is_file() and not path.is_symlink() and file_digest(path) == migration['sha256'], 'SQL source differs from reviewed plan') + name = 'sql/' + filename + files[name] = migration['sha256'] + sources[name] = path + for path in sorted(Path(args.evidence).rglob('*')): + require(not path.is_symlink(), 'Evidence symlink') + if path.is_file(): + name = 'evidence/' + path.relative_to(args.evidence).as_posix() + safe_path(name) + files[name] = file_digest(path) + sources[name] = path + deps = load(publish / 'PlotLine.deps.json') + versions = [x[9:] for x in deps['libraries'] if x.startswith('PlotLine/')] + require(len(versions) == 1, 'Application identity unavailable') + manifest = {'format': 1, 'release_id': safe_name(args.release_id), 'source_commit': commit, 'version': versions[0], + 'files': files, 'application_sha256': digest(canonical({k:v for k,v in files.items() if k.startswith('app/')})), + 'health': ['http-root', 'http-login', 'http-deployment-identity', 'database-postconditions', 'binary-identity'], **plan} + validate_manifest(manifest) + qualification_identity(manifest, load(Path(args.evidence) / PurePosixPath(plan['qualification']['evidence']).relative_to('evidence'))) + manifest_bytes = canonical(manifest) + (work / 'manifest.json').write_bytes(manifest_bytes) + sources['manifest.json'] = work / 'manifest.json' + with tarfile.open(output / 'package.tar', 'w', format=tarfile.USTAR_FORMAT) as tar: + for name, path in sorted(sources.items()): + entry = tarfile.TarInfo(name) + entry.size = path.stat().st_size + entry.mode = 0o644 + with path.open('rb') as stream: + tar.addfile(entry, stream) + authorization = {'format': 1, 'release_id': args.release_id, 'source_commit': commit, + 'package_sha256': file_digest(output / 'package.tar'), 'manifest_sha256': digest(manifest_bytes)} + (output / 'authorization.json').write_bytes(canonical(authorization)) + subprocess.run(['/usr/bin/openssl', 'pkeyutl', '-sign', '-inkey', args.signing_key, '-rawin', + '-in', str(output / 'authorization.json'), '-out', str(output / 'authorization.sig')], check=True, + stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + print(json.dumps(authorization, sort_keys=True)) + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + sub = parser.add_subparsers(dest='command', required=True) + p = sub.add_parser('prepare') + for field in ('source', 'plan', 'sql', 'evidence', 'output', 'release-id', 'signing-key'): + p.add_argument('--' + field, required=True) + v = sub.add_parser('verify') + v.add_argument('bundle') + v.add_argument('--public-key', required=True) + args = parser.parse_args() + os.umask(0o077) + try: + if args.command == 'prepare': + prepare(args) + else: + with tempfile.TemporaryDirectory(prefix='pd-verify-') as work: + m, a, _ = verify_bundle(Path(args.bundle).resolve(), work, args.public_key) + print(json.dumps({'verified': True, 'release_id': m['release_id'], 'package_sha256': a['package_sha256']})) + except (Refused, ValueError, OSError, subprocess.CalledProcessError) as error: + print('RELEASE REFUSED: ' + (str(error) if isinstance(error, Refused) else type(error).__name__)) + raise SystemExit(1) + + +if __name__ == '__main__': + main() diff --git a/Tools/Deployment/ssh_dispatch.py b/Tools/Deployment/ssh_dispatch.py new file mode 100644 index 00000000..ed125300 --- /dev/null +++ b/Tools/Deployment/ssh_dispatch.py @@ -0,0 +1,53 @@ +#!/usr/bin/python3 -I +"""Forced SSH command for plotdirector-deploy; no shell, SFTP or arbitrary paths.""" +import os +from pathlib import Path +import re +import subprocess +import sys +import tarfile + +INBOX=Path('/srv/plotdirector/incoming') +LIMIT=4*1024**3 + + +def main(): + os.umask(0o077) + # sshd ForceCommand passes the requested text as data, never to a shell here. + original=os.environ.get('SSH_ORIGINAL_COMMAND','') + match=re.fullmatch(r'(upload|validate|activate|rollback) ([A-Za-z0-9][A-Za-z0-9_.-]{0,99})',original) + if not match or match[2] in ('.','..'): + raise ValueError('Unsupported deployment operation') + operation,release=match.groups() + if operation!='upload': + args=['/usr/bin/sudo','-n','/usr/local/sbin/deploy-plotdirector'] + if operation=='validate':args.append('--validate') + if operation=='rollback':args.append('--rollback') + args.append(release) + raise SystemExit(subprocess.run(args,env={'PATH':'/usr/sbin:/usr/bin:/sbin:/bin','LANG':'C.UTF-8'},cwd='/').returncode) + destination=INBOX/release + destination.mkdir(mode=0o700) # Refuses replacement, including symlinks. + received=set() + total=0 + with tarfile.open(fileobj=sys.stdin.buffer,mode='r|') as tar: + for member in tar: + if member.name not in ('package.tar','authorization.json','authorization.sig') or member.name in received or not member.isfile() or member.linkname or member.pax_headers: + raise ValueError('Invalid transfer member') + received.add(member.name) + limit=LIMIT if member.name=='package.tar' else 16384 + if not 0<=member.size<=limit:raise ValueError('Transfer size exceeded') + total+=member.size + if total>LIMIT+32768:raise ValueError('Transfer size exceeded') + with tar.extractfile(member) as source,(destination/member.name).open('xb') as target: + while block:=source.read(1024**2):target.write(block) + target.flush();os.fsync(target.fileno()) + if received!={'package.tar','authorization.json','authorization.sig'}: + raise ValueError('Incomplete transfer; administrator must remove the incomplete incoming directory before retry') + print('UPLOADED '+release+'; activation has not been performed') + + +if __name__=='__main__': + try:main() + except Exception: + print('DEPLOYMENT REQUEST REFUSED; no command was shell-evaluated',file=sys.stderr) + sys.exit(1) diff --git a/Tools/Deployment/test_activation.py b/Tools/Deployment/test_activation.py new file mode 100644 index 00000000..6a4acb46 --- /dev/null +++ b/Tools/Deployment/test_activation.py @@ -0,0 +1,128 @@ +import hashlib +import json +from pathlib import Path +import tempfile +import unittest +import fcntl +from unittest.mock import patch +from types import SimpleNamespace + +import activate +from release import Refused,canonical + + +class ActivationFailureTests(unittest.TestCase): + def setUp(self): + self.temp=tempfile.TemporaryDirectory();self.root=Path(self.temp.name) + for name in ('releases','inbox/new-release','evidence','backup','old/app'):(self.root/name).mkdir(parents=True) + (self.root/'inbox/new-release/package.tar').write_bytes(b'fixture') + (self.root/'deployment.lock').write_bytes(b'') + (self.root/'current').symlink_to(self.root/'releases/old-release/app') + (self.root/'releases/old-release/app').mkdir(parents=True) + (self.root/'active-deployment.json').write_text('{"deployment":"previous-success"}') + self.cfg={'root':str(self.root),'inbox':str(self.root/'inbox'),'evidence':str(self.root/'evidence'), + 'backup':str(self.root/'backup'),'runtime_account':'root','migration_account':'root', + 'public_key':'not-used','minimum_free_bytes':1,'service':'plotdirector-qualification.service', + 'health_base':'http://127.0.0.1:5999','database':'PlotLine'} + self.calls=[];self.state='active';self.failure=None;self.status='200';self.complete=False;self.activations=[] + outer=self + class FakeWorker: + def __init__(self,cfg):outer.calls.append('worker-open') + def call(self,op,**values): + outer.calls.append(op) + if outer.failure==op:raise Refused('Injected '+op+' failure') + if op=='backup':Path(values['path']).write_bytes(b'verified-fixture') + if op=='begin':return {'complete':outer.complete} + if op=='activated':outer.activations.append(values) + return {} + def close(self):outer.calls.append('worker-close') + self.FakeWorker=FakeWorker + + def tearDown(self):self.temp.cleanup() + + def bundle(self,source,work,key): + payload=Path(work)/'payload';(payload/'app').mkdir(parents=True) + (payload/'app/PlotLine.dll').write_bytes(b'qualified-fixture') + (payload/'manifest.json').write_bytes(b'{}') + return {'release_id':'new-release','version':'1.0.0','source_commit':'a'*40,'files':{'app/PlotLine.dll':hashlib.sha256(b'qualified-fixture').hexdigest()}}, {'package_sha256':'a'*64},payload + + def command(self,args,**kwargs): + if args[0].endswith('systemctl'): + action=args[1];self.calls.append('service-'+action) + if action=='stop':self.state='inactive' + if action=='start':self.state='active' + return self.state + if args[0].endswith('curl'): + self.calls.append('http') + return self.status if '--output' in args else json.dumps({'healthy':True,'version':'1.0.0','sourceCommit':'a'*40,'database':'PlotLine'}) + raise AssertionError('Unexpected executable') + + def run_activation(self,validate=False,free=10**12,rollback=False): + # Root-only OS operations are mocked; archive validation and actual SQL + # transactions/concurrency are independently exercised by their test suites. + with patch.object(activate,'configuration',return_value=self.cfg),patch.object(activate,'protected'),\ + patch.object(activate,'verify_bundle',side_effect=self.bundle),patch.object(activate,'Worker',self.FakeWorker),\ + patch.object(activate,'command',side_effect=self.command),patch.object(activate.os,'chown'),\ + patch.object(activate.time,'sleep'),patch.object(activate.shutil,'disk_usage',return_value=SimpleNamespace(free=free)): + activate.activate('new-release',validate,rollback) + + def test_validation_does_not_backup_migrate_or_stop_service(self): + self.run_activation(validate=True) + self.assertNotIn('backup',self.calls);self.assertNotIn('migrate',self.calls);self.assertNotIn('service-stop',self.calls) + + def test_backup_verification_failure_prevents_shutdown(self): + self.failure='backup' + with self.assertRaises(Refused):self.run_activation() + self.assertNotIn('service-stop',self.calls);self.assertNotIn('migrate',self.calls) + + def test_migration_failure_keeps_old_target_and_service_stopped(self): + self.failure='migrate' + with self.assertRaises(Refused):self.run_activation() + self.assertEqual((self.root/'current').resolve(),self.root/'releases/old-release/app') + self.assertEqual(self.state,'inactive');self.assertNotIn('activated',self.calls) + + def test_failed_application_health_never_records_success(self): + self.status='500' + with self.assertRaises(Refused):self.run_activation() + self.assertEqual(self.state,'inactive');self.assertNotIn('activated',self.calls) + self.assertEqual(json.loads((self.root/'active-deployment.json').read_text())['deployment'],'previous-success') + + def test_success_is_recorded_after_http_and_database_health(self): + self.run_activation() + self.assertLess(self.calls.index('http'),self.calls.index('health')) + self.assertLess(self.calls.index('health'),self.calls.index('activated')) + self.assertEqual((self.root/'current').resolve(),self.root/'releases/new-release/app') + self.assertEqual(self.state,'active') + + def test_insufficient_space_prevents_any_database_or_service_operations(self): + with self.assertRaises(Refused):self.run_activation(free=0) + self.assertEqual(self.calls,[]) + + def test_install_permission_failure_leaves_service_stopped(self): + with patch.object(activate,'install',side_effect=PermissionError('injected')): + with self.assertRaises(PermissionError):self.run_activation() + self.assertEqual(self.state,'inactive');self.assertNotIn('activated',self.calls) + + def test_failed_release_history_write_stops_application(self): + self.failure='activated' + with self.assertRaises(Refused):self.run_activation() + self.assertEqual(self.state,'inactive') + self.assertEqual(json.loads((self.root/'active-deployment.json').read_text())['deployment'],'previous-success') + + def test_competing_filesystem_activation_is_rejected(self): + with (self.root/'deployment.lock').open('r+') as held: + fcntl.flock(held,fcntl.LOCK_EX|fcntl.LOCK_NB) + with self.assertRaises(Refused):self.run_activation() + self.assertEqual(self.calls,[]) + + def test_rollback_refuses_outstanding_sql(self): + with self.assertRaises(Refused):self.run_activation(rollback=True) + self.assertNotIn('backup',self.calls);self.assertNotIn('migrate',self.calls) + + def test_rollback_records_new_success_only_after_health(self): + self.complete=True;self.run_activation(rollback=True) + self.assertEqual(self.activations[0]['kind'],'Rollback') + self.assertEqual(self.activations[0]['previous_deployment'],'previous-success') + + +if __name__=='__main__':unittest.main() diff --git a/Tools/Deployment/test_release.py b/Tools/Deployment/test_release.py new file mode 100644 index 00000000..765c39d1 --- /dev/null +++ b/Tools/Deployment/test_release.py @@ -0,0 +1,173 @@ +import copy +import io +import json +import os +from pathlib import Path +import subprocess +import tarfile +import tempfile +import unittest + +import release + + +class ReleaseBoundaryTests(unittest.TestCase): + def setUp(self): + self.temp = tempfile.TemporaryDirectory() + self.root = Path(self.temp.name) + self.commit = 'a' * 40 + self.files = { + 'app/PlotLine.dll': ('1.0.0+'+self.commit).encode(), + 'app/PlotLine.deps.json': b'{"libraries":{"PlotLine/1.0.0":{"type":"project"}}}', + 'app/PlotLine.runtimeconfig.json': b'{"runtimeOptions":{"tfm":"net10.0"}}', + 'evidence/qualified.json': b'{"status":"passed"}', + } + index = {p: release.digest(b) for p, b in self.files.items()} + self.manifest = { + 'format': 1, 'release_id': 'fixture-release', 'source_commit': self.commit, 'version': '1.0.0', + 'files': index, 'application_sha256': release.digest(release.canonical({k:v for k,v in index.items() if k.startswith('app/')})), + 'starting_schema_sha256': 'b'*64, 'resulting_schema_sha256': 'c'*64, + 'migrations': [], 'omitted_migrations': [], 'prerequisites': [], + 'postconditions': [{'kind':'object','name':'dbo.Books','type':'U'}], + 'health': ['http-root','http-login','http-deployment-identity','database-postconditions','binary-identity'], + 'qualification': {'status':'passed','evidence':'evidence/qualified.json'}, + } + self.files['evidence/qualified.json']=release.canonical({'status':'passed','source_commit':self.commit, + 'application_dll_sha256':self.manifest['files']['app/PlotLine.dll'], + 'starting_schema_sha256':'b'*64,'resulting_schema_sha256':'c'*64}) + self.manifest['files']['evidence/qualified.json']=release.digest(self.files['evidence/qualified.json']) + + def tearDown(self): + self.temp.cleanup() + + def archive(self, extras=(), manifest=None): + archive = self.root / 'test.tar' + with tarfile.open(archive, 'w', format=tarfile.USTAR_FORMAT) as tar: + for name, data in [*self.files.items(), ('manifest.json', release.canonical(manifest or self.manifest)), *extras]: + entry = tarfile.TarInfo(name) + entry.size = len(data) + tar.addfile(entry, io.BytesIO(data)) + return archive + + def output(self): + dest = self.root / 'output' + dest.mkdir() + return dest + + def test_valid_package_extracts_exact_index(self): + self.assertEqual(release.extract(self.archive(), self.output()), self.manifest) + + def test_path_traversal_is_rejected(self): + with self.assertRaises(release.Refused): + release.extract(self.archive([('../escaped',b'x')]),self.output()) + self.assertFalse((self.root.parent / 'escaped').exists()) + + def test_duplicate_member_is_rejected(self): + with self.assertRaises(release.Refused): + release.extract(self.archive([('app/PlotLine.dll',b'replaced')]),self.output()) + + def test_unindexed_files_are_rejected(self): + with self.assertRaises(release.Refused): + release.extract(self.archive([('app/unreviewed.dll',b'x')]),self.output()) + + def test_application_configuration_is_rejected(self): + m=copy.deepcopy(self.manifest) + m['files']['app/appsettings.Production.json']='a'*64 + with self.assertRaises(release.Refused): release.validate_manifest(m) + + def test_file_integrity_is_enforced(self): + self.files['app/PlotLine.dll']=b'changed' + with self.assertRaises(release.Refused): release.extract(self.archive(),self.output()) + + def test_symlinks_hardlinks_and_special_members_are_rejected(self): + for kind in (tarfile.SYMTYPE,tarfile.LNKTYPE,tarfile.FIFOTYPE,tarfile.CHRTYPE): + with self.subTest(kind=kind): + archive=self.root/'special.tar' + with tarfile.open(archive,'w') as tar: + item=tarfile.TarInfo('app/link');item.type=kind;item.linkname='/etc/shadow';tar.addfile(item) + dest=self.root/('out-'+str(kind));dest.mkdir() + with self.assertRaises(release.Refused):release.extract(archive,dest) + + def test_duplicate_json_keys_are_rejected(self): + path=self.root/'duplicate.json';path.write_text('{"format":1,"format":2}') + with self.assertRaises(release.Refused):release.load(path) + + def test_unqualified_release_is_rejected(self): + self.manifest['qualification']['status']='pending' + with self.assertRaises(release.Refused):release.validate_manifest(self.manifest) + + def test_stale_qualification_identity_is_rejected(self): + evidence=json.loads(self.files['evidence/qualified.json']);evidence['source_commit']='f'*40 + with self.assertRaises(release.Refused):release.qualification_identity(self.manifest,evidence) + evidence['source_commit']=self.commit;evidence['application_dll_sha256']='f'*64 + with self.assertRaises(release.Refused):release.qualification_identity(self.manifest,evidence) + + def migration(self, identity='318_DeploymentHistory', requires=()): + filename=identity+'.sql';data=b'SELECT 1;' + self.files['sql/'+filename]=data + self.manifest['files']['sql/'+filename]=release.digest(data) + return {'id':identity,'file':filename,'sha256':release.digest(data),'requires':list(requires), + 'mode':'execute','prerequisites':[], 'postconditions':[{'kind':'object','name':'dbo.Books','type':'U'}]} + + def test_missing_and_out_of_order_dependencies_block(self): + self.manifest['migrations']=[self.migration(requires=['unknown'])] + with self.assertRaises(release.Refused):release.validate_manifest(self.manifest) + + def test_duplicate_migration_id_blocks(self): + step=self.migration();self.manifest['migrations']=[step,copy.deepcopy(step)] + with self.assertRaises(release.Refused):release.validate_manifest(self.manifest) + + def test_modified_migration_checksum_blocks(self): + step=self.migration();step['sha256']='a'*64;self.manifest['migrations']=[step] + with self.assertRaises(release.Refused):release.validate_manifest(self.manifest) + + def test_baseline_requires_evidence_and_never_claims_execution(self): + step=self.migration();step['mode']='baseline';self.manifest['migrations']=[step] + with self.assertRaises(release.Refused):release.validate_manifest(self.manifest) + step['evidence']='evidence/qualified.json';release.validate_manifest(self.manifest) + + def test_nontransactional_migration_is_explicitly_refused(self): + step=self.migration();step['mode']='nontransactional';self.manifest['migrations']=[step] + with self.assertRaises(release.Refused):release.validate_manifest(self.manifest) + + def test_arbitrary_shell_health_hook_is_rejected(self): + self.manifest['health'].append('sh -c anything') + with self.assertRaises(release.Refused):release.validate_manifest(self.manifest) + + def test_manifest_cannot_select_service_or_destination(self): + self.manifest['service']='catherinelynwood.service' + with self.assertRaises(release.Refused):release.validate_manifest(self.manifest) + + def test_input_snapshot_refuses_symlink_and_hardlink(self): + source=self.root/'source';source.write_bytes(b'fixture') + link=self.root/'link';link.symlink_to(source) + with self.assertRaises(OSError):release.snapshot(link,self.root/'copy',100) + link.unlink();os.link(source,link) + with self.assertRaises(release.Refused):release.snapshot(link,self.root/'copy2',100) + + def test_input_snapshot_is_independent(self): + source=self.root/'source';source.write_bytes(b'original');dest=self.root/'copy' + release.snapshot(source,dest,100);source.write_bytes(b'changed') + self.assertEqual(dest.read_bytes(),b'original') + + def test_signature_and_envelope_integrity(self): + private=self.root/'key.pem';public=self.root/'public.pem' + subprocess.run(['openssl','genpkey','-algorithm','ED25519','-out',str(private)],check=True,stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL) + subprocess.run(['openssl','pkey','-in',str(private),'-pubout','-out',str(public)],check=True,stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL) + bundle=self.root/'bundle';bundle.mkdir() + self.archive().rename(bundle/'package.tar') + authorization={'format':1,'release_id':self.manifest['release_id'],'source_commit':self.commit, + 'package_sha256':release.file_digest(bundle/'package.tar'), 'manifest_sha256':release.digest(release.canonical(self.manifest))} + (bundle/'authorization.json').write_bytes(release.canonical(authorization)) + subprocess.run(['openssl','pkeyutl','-sign','-inkey',str(private),'-rawin','-in',str(bundle/'authorization.json'),'-out',str(bundle/'authorization.sig')],check=True) + work=self.root/'verify';work.mkdir();release.verify_bundle(bundle,work,public) + (bundle/'package.tar').write_bytes(b'modified') + work2=self.root/'verify2';work2.mkdir() + with self.assertRaises(release.Refused):release.verify_bundle(bundle,work2,public) + (bundle/'authorization.json').write_bytes(b'{}') + work3=self.root/'verify3';work3.mkdir() + with self.assertRaises(release.Refused):release.verify_bundle(bundle,work3,public) + + +if __name__=='__main__': + unittest.main() diff --git a/Tools/Deployment/transfer.py b/Tools/Deployment/transfer.py new file mode 100644 index 00000000..0a281b6e --- /dev/null +++ b/Tools/Deployment/transfer.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python3 +"""Atlas-side immutable transfer. Upload only; activation is a separate operation.""" +import argparse +import os +from pathlib import Path +import subprocess +import tarfile +from release import load, safe_name, require + +parser=argparse.ArgumentParser(description=__doc__) +parser.add_argument('bundle') +parser.add_argument('--identity',required=True) +parser.add_argument('--host',default='85.190.124.132') +args=parser.parse_args() +require(args.host=='85.190.124.132','Production transfer host must be web1') +bundle=Path(args.bundle).resolve() +release=safe_name(load(bundle/'authorization.json')['release_id']) +command=['ssh','-F','/dev/null','-i',args.identity,'-o','IdentitiesOnly=yes','-o','HostKeyAlgorithms=ssh-ed25519', + '-o','StrictHostKeyChecking=yes','-o','UpdateHostKeys=no','plotdirector-deploy@'+args.host,'upload '+release] +process=subprocess.Popen(command,stdin=subprocess.PIPE) +try: + with tarfile.open(fileobj=process.stdin,mode='w|',format=tarfile.USTAR_FORMAT) as tar: + for name in ('authorization.json','authorization.sig','package.tar'): + path=bundle/name + require(path.is_file() and not path.is_symlink(),'Invalid transfer input') + entry=tarfile.TarInfo(name);entry.size=path.stat().st_size;entry.mode=0o600 + with path.open('rb') as stream:tar.addfile(entry,stream) + process.stdin.close() + raise SystemExit(process.wait()) +finally: + if process.poll() is None:process.kill();process.wait()