Repository navigation
id-core: announce partial holdings as held-ranges summaries (#2262 slice) - #16661
Merged
Merged
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
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.
One independent slice of #2262: a holder can now announce its partial holdings as held-range summaries, and the provider table records them instead of degrading every announced holding to Unknown.
Refs #2262
What changed (pkgs/id/crates/id-core/src/holders.rs only):
ranges: Vec<(Hash, HeldRanges)>field with #[serde(default)] — pre-change payloads (no ranges field) still parse and record Unknown, exactly as before.Failing-first evidence: the round-trip test was committed alone first — remote run 46240671224 (fleet-command on developing-today/fleet): 11 holders tests ran, announcement_json_with_ranges_survives_apply FAILED (announced Ranges degraded to Unknown), the legacy-payload test passed.
Verification: remote run 46241166105, same command (
cd pkgs/id && cargo test -p id-core --lib holders): test result ok — 14 passed, 0 failed (9 pre-existing + 5 new: wire round-trip, legacy payload, per-hash summaries, serde round-trip, cap parity).What this does NOT do (remains on #2262 / #2261): the get.rs fetch-loop wiring and the live multi-holder demo from Follow-up B, and criterion 3. This slice only makes the announcement carry the summary the scheduler will consume.
{ "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-29T08:23:18Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch", "repo": "developing-today/code", "branch": "main", "sha": "4291c7d25d6699e6d0378dcce687f1935ec39c09" }, "auth_subject": "felix", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.