GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Wire the blob membership gate into id serve (#173) by dezren39 · Pull Request #3917 · developing-today/code Conversation
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 33 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: f62c344f2e
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| by_world.entry(key).or_default().push(event.clone()); | ||
| } | ||
| Worlds::fold(&by_world, BTreeMap::new()) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Preserve causal dependencies when partitioning the group log
When the log contains more than one group, this partition produces incomplete event graphs. GroupLog::record sets after to the heads of the entire log (groups/log.rs:123–128), so creating group B after group A makes B's create depend on an event excluded from B's partition. groups::fold::index rejects that partition with MissingDependency, and build_blob_gate consequently replaces all worlds with an empty fold, denying even authorized members every fetch. Preserve the global causal graph while deriving per-group authority, rather than passing dependency-incomplete partitions to Worlds::fold.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| let Ok(bytes) = store.get_bytes(hash).await else { | ||
| continue; | ||
| }; | ||
| let kids = crate::blob_gate::hashseq_children(&bytes); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Require explicit collection metadata before expanding references
For a raw document whose bytes contain the 32-byte digest of another stored blob, this treats the document as a collection and grants its world access to that other blob. DocumentRef carries only media type, content hash and size; it does not designate a HashSeq. For example, sharing a binary checksum document in world B can therefore expose the contents of a private world-A blob to B's members: the all_present check succeeds precisely because the private blob is stored locally. Only expand explicitly identified collections, rather than interpreting arbitrary document contents as authorization references.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if !seen.insert(hash) { | ||
| continue; | ||
| } | ||
| let Ok(bytes) = store.get_bytes(hash).await else { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Bound blob reads performed during gate construction
When a referenced document is large, this loads its entire contents into memory merely to determine whether it might be a HashSeq—even for ordinary raw files. Document sizes are unrestricted, and this traversal runs both before the router starts and every 60 seconds, so a sufficiently large stored document can exhaust memory during startup or kill a running server during refresh. Determine collection status from explicit metadata and use bounded reads for collection expansion instead of materializing every referenced blob.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| Some(gate) => BlobsProtocol::new( | ||
| &store_handle, | ||
| Some(crate::blob_gate::blob_events( | ||
| Arc::clone(gate), | ||
| crate::blob_gate::BlobPolicy::default(), |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Preserve authorized downloads of world-records blobs
When serve enables both the web UI and worlds, this gate also intercepts the blob downloads required by the existing world-mirroring flow. ServeWorlds::open_world creates a RecordsStore using the same Docs instance and blob store; RecordsStore::reconcile writes record values with doc.set_bytes, not as event-store document.put events. Those value hashes therefore never enter this gate's reference index, so even an authorized group member receiving a valid records ticket cannot download them. WorldCommand::Mirror calls world_records::replicate, which waits for those blobs and eventually times out for a nonempty records document. Include records blobs and their authorization in the gate before applying it to the shared provider.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Closing as superseded by PR #7181 (canonical for issue #173 under task 5874). Verified 2026-11-12 by lane any-c: this PR's head f62c344 is a git ancestor of PR #7181's head a3c1b38, so every commit here is contained in #7181 (salvage note posted on #7181). The remaining #173 work continues on #7181. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.