Skip to content

Fix subscription publication verification and freshness - #40

Merged
squarepots merged 1 commit into
mainfrom
fix/subscription-publication-state
Sep 17, 2026
Merged

squarepots merged 1 commit into
mainfrom
fix/subscription-publication-state

Conversation

@squarepots

@squarepots squarepots commented Sep 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • verify the complete supported subscription payload and record the exact verified publication fingerprint/body digest
  • reconcile the live subscription endpoint before deployment so retries skip an already completed remote mutation
  • keep token rotation on the existing PendingToken across partial failures and finish local artifact recovery without another rotation
  • report local render, verified publication, and client-refresh state separately
  • persist per-target migration publication progress across intent, external mutation, verification, and local completion
  • persist rollback intent before rollback work and resume interrupted rollback from the incomplete publication target
  • keep schema-1 migration checkpoints compatible with legacy publication_attempted state

Tests

  • large-body verification at 8 KiB, 8 KiB + 1 byte, supported maximum, and mismatch
  • publication freshness and client-refresh freshness as independent observations
  • verified remote publication followed by local state failure, with retry proving no second Worker mutation
  • token-rotation commit and artifact failures, with retry proving no new token or repeated remote mutation
  • migration failures before external mutation, after external mutation, and after verified publication
  • rollback intent durability, interrupted multi-target rollback resumption, and legacy migration checkpoint recovery

Version impact

patch — fixes existing subscription publication, recovery, drift, and migration behavior.

Closes #39

Signed-off-by: squarepots <46488165+squarepots@users.noreply.github.com>
@squarepots
squarepots force-pushed the fix/subscription-publication-state branch from ae5021b to 4011191 Compare September 11, 2026 14:16
@squarepots
squarepots merged commit 354fee2 into main Sep 17, 2026
9 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.

Make subscription publication state reliable

1 participant