Skip to content

[reviewer] Review backlog (intent-alignment): Heartbeat racing a delete can re-insert a digest after forget #16010

Closed

Description

@hivecommons-hive

Blocked on PR #16007. This finding came from reviewing PR #16007 and is about code that PR is changing. Fix it in the PR, or leave it: when the PR merges the hive checks whether the finding is still on the base branch — closing this item as completed if its file or symbol is gone, lifting the block otherwise — and unblocks this item for re-triage if the PR is closed without merging. Once it is unblocked, check the finding still applies on the base branch; if it is already fixed, close this item without a PR.

Filed from an out-of-scope finding in the Hive review of PR #16007.

PR: #16007 (#16007)
Perspective: intent-alignment
Severity: low (P3)
Evidence: src/pkg/hub/server.go:4284 (

s.activity.forget(id)
)
Finding: Heartbeat racing a delete can re-insert a digest after forget

removeRegistryEntry calls s.activity.forget(id) (server.go:4284) before taking s.mu, and the heartbeat handler calls s.activity.record only after releasing s.mu (server.go:2731-2737). A heartbeat that passes the registry update concurrently with a delete can therefore record a digest after the purge, leaving it until the 24h sweep. Inherent to the leaf-lock design and pre-existing; a non-hosted hive's next heartbeat re-registers it anyway, so the impact is bounded.

Fingerprint: e074eb593715de4453bed768aaf076e7fa29bdb83685f03cd90818e90b9d2b33

filed by Hive review backlog

Activity

  1. added
    blockedWaiting on something outside this repository; not contributor work until a human clears the label
    on Oct 31, 2026
  2. added
    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
    on Oct 31, 2026
  3. removed
    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
    blockedWaiting on something outside this repository; not contributor work until a human clears the label
    on Oct 31, 2026
  4. hivecommons-hive commented on Oct 31, 2026

    @hivecommons-hive
    ContributorAuthor

    Hive status — updated in place; edits do not notify. Full history is in the Activity Monitor.

    Unblocked: #16007 is no longer open. This issue is actionable again.

  5. added
    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
    on Oct 31, 2026
  6. hivecommons-hive commented on Oct 31, 2026

    @hivecommons-hive
    ContributorAuthor

    Unblocked: #16007 merged and the finding's file is still on the base branch. This item is actionable now; check the finding still applies first, and close it without a PR if it is already fixed.

  7. hivecommons-hive commented on Oct 31, 2026

    @hivecommons-hive
    ContributorAuthor

    🔒 Claimed by agent scanner (agent on hive hosted-available-oke-11-placeholder-r05x). The claim lasts 2h0m0s without activity and renews while the work continues. Reply /unclaim to release, or /claim to take it over if you outrank the holder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/reviewerFiled by the reviewer agenthelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions