Skip to content

Move sequence-array publication off participant startup's critical path - #1370

Draft
JackWilb wants to merge 2 commits into
devfrom
codex/1319-sequence-publication
Draft

Move sequence-array publication off participant startup's critical path#1370
JackWilb wants to merge 2 commits into
devfrom
codex/1319-sequence-publication

Conversation

@JackWilb

Copy link
Copy Markdown
Contributor

Summary

  • key sequence artifacts and build records by config hash
  • atomically coordinate deterministic seeds and bounded publication leases across Firebase and Supabase
  • derive sequence arrays locally so participant assignment can continue while the lease owner publishes in the background
  • retain legacy arrays and prior config artifacts for existing participant sessions
  • attach immutable cache metadata during the initial canonical artifact upload

Why

The first participant after a config change previously generated and uploaded the full sequence array before participant initialization could continue. It also deleted the prior mutable artifact, which made artifact lifetime depend on the active config rather than participant sessions.

This change establishes a small transactional build record first. Concurrent clients derive the same array from its seed, while only the lease owner uploads the canonical artifact. Failed or abandoned publishers can be replaced without changing the seed.

Closes #1319.

Validation

  • yarn install --frozen-lockfile
  • yarn unittest --run (2,036 tests passed, 1 skipped)
  • yarn typecheck
  • yarn lint
  • yarn build
  • git diff --check

@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

A preview of 22d5bb1 is uploaded and can be seen here:

https://revisit.dev/study/PR1370

Changes may take a few minutes to propagate.

@JackWilb JackWilb linked an issue Jul 30, 2026 that may be closed by this pull request
10 tasks
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.

Move sequence-array publication off participant startup's critical path

1 participant