Repository navigation
Keep a committed namespace ready when only Redis or the ack fails (RD-1) - #48
Merged
Merged
Conversation
A mirror readback miss, a transient competing peek, or a clock-step freshness refusal after PostgreSQL committed generation G no longer writes status=blocked. Publisher.publish raises PostCommitError for any refusal after Authority.publish returned; PostgresWorker.poll re-raises it and a small set of operational reasons without blocking, and a replayed already-committed transaction republishes the mirror before acking. Schema/DML safety refusals still block. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0194kAmY4QqQGabdoB3xGFsr
# Conflicts: # smplcache/production_postgres.py
dbccpage
pushed a commit
that referenced
this pull request
Nov 11, 2026
dbccpage
pushed a commit
that referenced
this pull request
Nov 11, 2026
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.
Requested by Jeremy · project thread
What
Publisher.publishraisesPostCommitError(aProductionError) for any refusal afterAuthority.publishreturned: mirror write/readback or the source ack.PostgresWorker.pollre-raisesPostCommitErrorand a short list of operational reasons (mirror_publication_unconfirmed,source_slot_competing_consumer,invalid_freshness_observation,heartbeat_generation_changed,generation_conflict,stale_or_expired_owner) without writingstatus=blocked. Schema/DML safety refusals (source_schema_changed,source_offset_gap, ...) still block.offset <= previous) republishes the mirror before acking, so the next poll heals even withoutrecover().Evidence (local PG 16.15 + wal2json 2.5 + Redis 7, in the cloud container)
test_production_mirror_readback_loss_after_commit_keeps_namespace_ready[recover|poll]injectsGET -> NoneinRedisMirror.put. On main it endsblocked; with this PRrecover()or the nextpoll(), thenReader.read(), hit without re-bootstrap.test_production_transient_slot_competition_does_not_block, plus two sqlite unit tests forPostCommitError.black --check .andmypy smplcache demo scripts/check_sql_coverage.py: clean.pytest --ignore=tests/test_live_containers.py --ignore=tests/production_native.py: 2274 passed. Native suite (non-cluster, non-disruptive): green locally.Generated by Claude Code