Skip to content

fix(state): harden immutable publish bursts - #583

Merged
joshavant merged 1 commit into
mainfrom
codex/immutable-ledger-canary
Jul 14, 2026
Merged

joshavant merged 1 commit into
mainfrom
codex/immutable-ledger-canary

Conversation

@joshavant

@joshavant joshavant commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Standalone burst hardening based directly on current main and its bounded immutable lease-priority publisher.

  • raise the default absolute immutable publication budget from 90 seconds to 3 minutes while leaving exclusive publication at 90 seconds
  • raise immutable convergence attempts from 32 to 128
  • preserve CLAWSWEEPER_PUBLISH_DEADLINE_MS as a backwards-compatible explicit override, with an immutable-specific override available when needed
  • keep immutable path admission, collision detection, replay equivalence, bounded exclusive priority, and exclusive-publisher rebuild behavior unchanged

This PR does not stack on or depend on any other open PR. It does not enable immutable exact-review publication.

Evidence

  • pnpm run build:worker
  • 64 publishers converge in four synchronized 16-writer cohorts (64/64 paths verified)
  • one immutable publisher survives 33 forced consecutive branch races, proving progress beyond the former 32-attempt ceiling
  • local focused stress run passed 2/2 in 99 seconds
  • bounded deadline, accepted-push-timeout, and exclusive-acquisition-race paths remain fail-closed and remotely verified

Rollout

Merge this standalone hardening, then observe the already-wired low-volume GitHub-activity immutable publisher. Exact-review immutable publication remains a separate hard-wired workflow change only after that canary produces successful publication evidence.

@joshavant
joshavant force-pushed the codex/immutable-ledger-canary branch from 09480de to 6078230 Compare July 14, 2026 22:09
@joshavant
joshavant changed the base branch from fix/immutable-lease-priority-budget to main July 14, 2026 22:16
@joshavant
joshavant force-pushed the codex/immutable-ledger-canary branch 2 times, most recently from b91484a to c6121d1 Compare July 14, 2026 22:18
@joshavant joshavant changed the title fix(state): harden immutable publish bursts fix(state): harden immutable ledger publication Jul 14, 2026
@joshavant
joshavant force-pushed the codex/immutable-ledger-canary branch from c6121d1 to ef4ef92 Compare July 14, 2026 22:19
@joshavant joshavant changed the title fix(state): harden immutable ledger publication fix(state): harden immutable publish bursts Jul 14, 2026
@joshavant
joshavant force-pushed the codex/immutable-ledger-canary branch from ef4ef92 to 4904d28 Compare July 14, 2026 22:29
@joshavant
joshavant merged commit 061a401 into main Jul 14, 2026
9 checks passed
@joshavant
joshavant deleted the codex/immutable-ledger-canary branch July 14, 2026 22:40
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.

1 participant