GeezerVison is showing github.com — fix(id): redact install seed from join projections by dezren39 · Pull Request #250 · developing-today/code
Conversation
dezren39
commented
Oct 17, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Fixes #240.
Problem
ProgramInstalled { seed } was serialized to every joiner: WorldCore::events_after and the join snapshot (snapshot_unchecked) returned the retained event verbatim (verified: seed 424242 in fixture work on PR #239, and reproduced here with a new regression test that failed on main). A program whose hidden state is derived from init(seed) therefore leaked that state to every participant.
Solution (the issue's recommended option: treat the seed as secret)
- New
redact_install_seed projection in world.rs: a ProgramInstalled event keeps its module_hash (joiners need it to fetch the module via DownloadModule) but its seed is zeroed.
- Applied in exactly the two join projections:
WorldCore::events_after and WorldCore::snapshot_unchecked (which also covers the session snapshot/resnapshot paths and the lagged-subscriber resync, all of which go through snapshot/events_after with a JOIN capability).
- Untouched, by design: the journal (
JournalEntry::Committed/Checkpoint), the core's retained events, RestoredProgram, active_seed, and the install_program return to the admin — replay through the journal/admin path still uses the real seed the admin installed with. The live broadcast path already never forwards ProgramInstalled itself (it sends a fresh snapshot + ProgramChanged { module_hash }).
Tests
- New regression test
join_projections_redact_the_install_seed_but_the_journal_keeps_it: failed before the fix (seed 424242 in events_after), passes after; also asserts the journal restore path and core keep the real seed.
- Targeted suite:
cargo test --lib -- world:: world_session:: world_store:: world_hub:: — 122 passed, 0 failed.
cargo check --lib --no-default-features — passes (one pre-existing dead-code warning in event_store/ingest.rs, unrelated).
- rustfmt/clippy binaries are unavailable in the sweep sandbox (same as id: lib does not build with --no-default-features #193/fix(id): build lib with --no-default-features #245); CI will verify.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
ProgramInstalled { seed } was serialized to every joiner through
WorldCore::events_after and the join snapshot, so a program whose
hidden state derives from init(seed) leaked that state to every
participant.
Per the recommendation on #240, treat the seed as secret: add
redact_install_seed and apply it in the two join projections
(snapshot_unchecked and events_after). Joiners keep the module hash
(they need it to fetch the module) but see seed 0. The journal, the
core's retained events, RestoredProgram and the install/admin return
path keep the real seed, so replay through the journal/admin path is
unchanged.
Regression test: restore a journal whose install used seed 424242,
assert the restore/core keep it and that neither events_after nor the
snapshot exposes it.
|

Note Currently processing new changes in this PR. This may take a few minutes, please wait...
⚙️ Run configuration
-
- Configuration used: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
3437d121-c098-4f84-8c2b-d35c16bb44fd
📥 Commits
-
Reviewing files that changed from the base of the PR and between 7a3dc31 and 7226fd4.
📒 Files selected for processing: 1
-
+------------------------------+
| Here's looking at you, code. |
+------------------------------+
\
\ (\__/)
(•ㅅ•)
/ づ
✨ Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Oct 18, 2026
This was referenced Nov 14, 2026
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
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.
|