Skip to content

id-core: announce partial holdings as held-ranges summaries (#2262 slice) - #16661

Merged
developing-today-fleet[bot] merged 2 commits into
mainfrom
felix/2262-held-ranges-main
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 2 commits into
mainfrom
felix/2262-held-ranges-main

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

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):

  • HolderAnnouncement gains a ranges: Vec<(Hash, HeldRanges)> field with #[serde(default)] — pre-change payloads (no ranges field) still parse and record Unknown, exactly as before.
  • New HolderAnnouncement::new_with_ranges constructor: the pair list is the source of truth, hashes derive from it, and both truncate together at HOLDER_ANNOUNCEMENT_CAP (256).
  • ProviderTable::apply_announcement records the carried summary per hash; hashes without a pair stay Unknown.

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-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 40d1b447-e382-4757-b2f6-fe31824c7d9e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@developing-today-fleet
developing-today-fleet Bot merged commit 535aea9 into main Nov 29, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the felix/2262-held-ranges-main branch November 29, 2026 08:23
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.

0 participants