Skip to content

Replace expanded sequence arrays with compact descriptors - #1369

Draft
JackWilb wants to merge 2 commits into
devfrom
codex/1321-compact-sequence-representation
Draft

Replace expanded sequence arrays with compact descriptors#1369
JackWilb wants to merge 2 commits into
devfrom
codex/1321-compact-sequence-representation

Conversation

@JackWilb

Copy link
Copy Markdown
Contributor

Summary

  • publish a versioned compact sequence descriptor containing the config hash, deterministic seed, algorithm version, and sequence count
  • derive only the assigned sequence row through a locked deterministic PRNG while preserving Latin-square, random, interruption, conditional, nested, and dynamic sequencing behavior
  • continue loading legacy expanded sequence arrays and existing participant sessions without migration
  • reject corrupt, unsupported, or config-mismatched descriptors with actionable recovery messages
  • cover descriptor persistence through LocalStorage, Firebase, and Supabase

Impact

For library-calvi, the focused regression fixture measures:

  • expanded sequence artifact: 3,350,322 bytes
  • compact descriptor: 223 bytes
  • reduction: greater than 99.99%

Concurrent publishers for the same config produce the same descriptor because version 1 derives its seed from the config hash.

Validation

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

Playwright/browser profiling was not run. Before promoting this draft, the preview should be profiled in supported browsers to record download, parse/generation, and time-to-interactive changes for library-calvi.

Closes #1321

@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

A preview of 8693a42 is uploaded and can be seen here:

https://revisit.dev/study/PR1369

Changes may take a few minutes to propagate.

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

Replace expanded sequence arrays with a compact deterministic representation

1 participant