Repository navigation
fix(id): a failed blob-gate rebuild keeps the previous fold (#13821) - #14384
Open
developing-today-fleet[bot] wants to merge 1 commit into
Open
developing-today-fleet[bot] wants to merge 1 commit into
developing-today-fleet[bot] wants to merge 1 commit into
Conversation
build_blob_gate substituted fallback values on every read error — an unopenable or unfoldable group log became an empty membership, an unreadable document-references read became an empty index — and the serve refresh loop installed the result unconditionally, so one transient read failure emptied the live blob gate for every current member until the next tick. - build_blob_gate now returns anyhow::Result: each failing step (open the group log, fold it, read the document references) is named via context, and a failed build produces no fold at all. - RefreshingWorlds gains try_refresh: a rebuilt fold installs only on success; on failure the error returns to the caller and the previous fold stays in force. The refresh loop logs failures at error level. - Startup keeps the fail-closed default: a failed first build logs at error level and starts from an empty gate, as before. - New id-worlds test: a rebuild failing at each of the three steps keeps the previous membership in force, and a later successful rebuild that removes the member revokes the fetch.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
This was referenced Nov 24, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #13821
What changed
build_blob_gatesubstituted fallback values on every read error — an unopenable or unfoldable group log became an empty membership, an unreadable document-references read became an empty index — and the serve refresh loop installed the result unconditionally, so one transient read failure emptied the live blob gate for every current member until the next tick.id-clibuild_blob_gatenow returnsanyhow::Result. Each failing step (open the group log, fold it, read the document references) is named viaanyhow::Context, and a failed build produces no fold at all — a partial fold built from fallback values is never mistaken for a complete one.RefreshingWorlds::try_refresh(id-worlds). A rebuilt fold installs only on success; on failure the error returns to the caller and the previous fold stays in force. The refresh loop logs failures at error level with the failing step.id-worldsblob_gate): a rebuild failing at each of the three steps keeps the previous membership in force, and a later successful rebuild that removes the member revokes the fetch.Verification — partial, blocked by the grouped-bump fallout (#14315)
Verified on this branch (laptop,
nix developinpkgs/id, with PR #14325's id-store fix merged locally for the compile):cargo check -p id-worlds(lib): clean.cargo check -p id-worlds --tests: no errors inblob_gate.rs— the new test type-checks. The target as a whole fails on 25 pre-existing errors inworld/module code and iroh-gossip drift, none in this change.rustfmt --checkon the three changed files: clean.Not yet verified, and why:
id-cliserve changes are not yet type-checked:cargo check -p id-clifails on pre-existing iroh-gossip 0.103 drift (net/apimodules private,GOSSIP_ALPNmoved) in serve/gossip/world code this PR does not touch, and--features webadditionally fails inid-web(markdownNodeValuepattern drift, 49 errors). All of it is the same 2026-11-24 grouped bump that brokeid-store(pkgs/id: id-store does not compile on main since the 2026-11-24 grouped cargo bump (iroh-blobs 0.105 / redb 5.0) #14315); the extra seams are recorded on pkgs/id: id-store does not compile on main since the 2026-11-24 grouped cargo bump (iroh-blobs 0.105 / redb 5.0) #14315.Merge gate: merge only after the bump adaptation lands and, on the rebased branch,
cargo test -p id-worlds blob_gatepasses andcargo check -p id-cli --features webis clean. Queue task 23235 is dep-blocked on #14315 with this wake protocol recorded.{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-24T13:44:01Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": null, "model": null, "lane_start_issues": [], "workspace_ref": null, "auth_subject": "archer", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.