Bucket-backed DB persistence + dual-workspace Phase 1 (Workspace, Stage, Outreach) - #118
Open
futureaigh wants to merge 7 commits into
Open
futureaigh wants to merge 7 commits into
futureaigh wants to merge 7 commits into
Conversation
…ace filter, MCP log_outreach
…ode 25 localStorage test env
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Storage: Bucket, not Volume. The SQLite DB file (Prisma stays — it has no DuckDB provider, so an engine swap would mean rewriting 100+ call sites for zero single-user benefit) now persists to a Railway Bucket (
jobsync-db, sjc) instead of the Railway Volume:scripts/sync-db-bucket.mjs: dep-free SigV4 S3 client (GET/PUT/HEAD), download on boot, upload on 5-min timer + SIGTERM/SIGINT, syncs main file + WAL sidecars, exits 0 when unconfigured (local dev unaffected)docker-entrypoint.sh+Dockerfile: restore beforeprisma migrate deploy, periodic push,scripts/copied into the slim runner (zero new npm deps)AWS_ENDPOINT_URL,AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_S3_BUCKET_NAME,AWS_DEFAULT_REGION=auto,S3_PATH_STYLE=falseDual-workspace Phase 1 (PRD):
Workspace/Stage/WorkspaceField/Outreachmodels + migrationdual_workspace_outreach; workspace server actions (create with default SCHOOL/JOB pipelines, idempotent ensure-defaults, guarded delete); outreach actions (logOutreachauto-sets follow-up = sent + 12d,getFollowUpsDue,markOutreachReplied);followUpDueDatehelper encoding the 10–14d rule; osuiWorkspaceSwitchercomponent;seed-school-workspace.mjsseeding the SCHOOL workspace + 7 PI contacts (verified idempotent against local dev DB).Tests
bucket-sync(17, mocked fetch incl. SigV4 shape/determinism),outreach-follow-up,workspace.actions,outreach.actionstsc --noEmitclean;prisma validate+migrate dev+generategreenFollow-ups (not in this PR)
jobsync-volumeafter first successful bucket-backed deploy