feat(database): add a WFL ORM and audited SQLite migrations - #16
Conversation
|
Important Review skippedToo many files! This PR contains 118 files, which is 18 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (118)
You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Scriptorium now uses a reusable WFL ORM and versioned SQLite migrations for all seven persistence tables. Fresh databases initialize through explicit migrations; supported unversioned databases are inspected and adopted while retaining records, installation state, and extension objects.
Every test scenario, fixture, helper, integration driver, and the complete runner is WFL. The converted suite includes real HTTP, migration interruption/concurrency, and database-plus-uploads recovery, with pinned Scribe coverage.
Changes
Compatibility and risk
93d62af5a6ed6c3ce257ef888107fc3ca1e2dc1d. Official WFL 26.9.16 at23c1a4577da68d853fa30c49a17773427471eca4provides the required upstream capabilities.wfl scripts/migrate.wfl statusandplan, then applyup. Both shipped historical migrations are explicitly irreversible. Restore a complete matching backup or use a reviewed forward repair; recreating discarded data is not rollback. Inspect interrupted history/schema/integrity before resuming with the same immutable sources. See the migration and recovery guide.Validation
fd1a65e5998d17788e22dc667f079679906d9945; GitHub merge checkouta223a9f20ad95d4f31a1051d6f1a67f851ef1b0c; Blacksmith Linux x64. Fresh official imagebsbyrdwfl/wfl@sha256:1092a0c557731113f08673c764e0deb9e0b053992b4488974863f0a8d692db91, WFL 26.9.16, source23c1a4577da68d853fa30c49a17773427471eca4; Scribe93d62af5a6ed6c3ce257ef888107fc3ca1e2dc1d. Official publication.wfl --execution-timeout 1200 scripts/run_tests.wflon Blacksmithci-propagation.test.wflfailed. Red CI. The deliberate test is removed from this final revision. Nested negative fixtures are checked by the passing runner suite and are not additional top-level failures.304a5fdb0c63be5118ae13dbab4c929b699d4076; final head only removes three empty EOF lines. Verified official executable SHA25632375058e0111f6c159144a8ffa9bd5b3a3bde81f578eca015149053ea4c6cbb; local logtarget/full-official-26.9.16-green.log. Final full-diff whitespace check passed and the worktree is clean.Checklist
Technical review and final CI are complete. Scriptorium merge and production deployment remain separate maintainer actions.