Repository navigation
Add Postgres queue state foundation - #22
Merged
Merged
Conversation
rbtr
force-pushed
the
roadmap-postgres-state
branch
4 times, most recently
from
June 24, 2026 15:41
8c9f882 to
71c8e16
Compare
rbtr
marked this pull request as draft
June 24, 2026 16:04
rbtr
force-pushed
the
copilot/engine-state-snapshots
branch
4 times, most recently
from
June 24, 2026 18:16
227bd78 to
6b4e868
Compare
rbtr
added a commit
that referenced
this pull request
Jun 24, 2026
## Summary - add consumer-side engine checkpoint hooks for queue snapshots - keep snapshot DTOs in neutral internal/checkpoint and the default bbolt implementation in internal/checkpoint/bolt - save pending candidates, active batch metadata, linger state, and bisection counters - wire SHUNT_STATE_PATH for single-repo and topic-managed queues - restore active batches by re-staging them before landing, avoiding stale pre-restart CI results - document persistence behavior and add Helm/Kubernetes knobs for mounting durable state ## Ordering This is now the generic engine state/snapshot boundary plus the default built-in local store, and should land before PR #22. It stays based on main; PR #22 is stacked behind it for external/Postgres store work. ## Validation - go test ./internal/checkpoint ./internal/checkpoint/bolt ./internal/engine ./internal/manager ./cmd/shunt - make lint test build - helm lint charts/shunt - helm template shunt charts/shunt --set config.statePath=/var/lib/shunt/shunt.db --set persistence.enabled=true - package architecture review: no leaf package imports engine; engine owns the consumer-side store interface Co-authored-by: Evan Baker <2940321+rbtr@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add a durable queue-state package with a Postgres migration and store implementation for per-queue snapshots. Document that runtime engine checkpoint/resume wiring remains pending. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
rbtr
marked this pull request as ready for review
June 24, 2026 20:39
rbtr
force-pushed
the
roadmap-postgres-state
branch
from
June 24, 2026 20:39
71c8e16 to
ea1a44b
Compare
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.
Summary
Validation