Skip to content

Conversation

@virajmehta
Copy link
Member

@virajmehta virajmehta commented Jan 22, 2026

no functional changes. Closes #34
Inspired by similar infra in absurd.


Note

Sets up database migration infrastructure and validation.

  • Adds sql/schema.sql defining the durable workflow schema (queues, tasks, runs, checkpoints, events) and related PL/pgSQL functions (e.g., spawn_task, claim_task, complete_run, fail_run, await_event, emit_event, cleanup utilities)
  • Adds scripts/validate-schema (Python via uv, testcontainers) to compare schema.sql vs. applying src/postgres/migrations/*.sql and report diffs
  • Updates CI to install uv, run ./scripts/validate-schema, and execute tests with nextest
  • Documents /make-migration and /validate-schema commands under .claude/commands/

Written by Cursor Bugbot for commit 0e1340c. This will update automatically on new commits. Configure here.

@virajmehta virajmehta marked this pull request as ready for review January 22, 2026 13:35
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 46caba62a5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Aaron1011 Aaron1011 added this pull request to the merge queue Jan 22, 2026
Merged via the queue into main with commit 50d6324 Jan 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

As we add migrations, commit a clean copy of the whole sql API to the repo

3 participants