HydraIssues

[NOT A BUG - owner ruled cross-venue is intended] hydracluster: venue is a preference, not an isolation boundary; the docs say otherwise
closed bug Project: hydracluster Reporter: 18 Oct 2026 16:29

Description

The filter

handleEligibleBodies, pkg/api/handlers_api.go:987-995 in v2.0.130:

sameVenue = n.Venue == head.Venue
sameOwner := n.Owner != "" && n.Owner == head.Owner
if !sameVenue && !sameOwner {
    continue
}

It is an OR. A head sees every body that shares its venue or its owner. Venue is therefore not an isolation boundary whenever the owner matches, which across this fleet it almost always does.

Measured, 2026-10-18, district bxl1

HEADS                                    BODIES
peppy-dumpling-32  rupelmonde            cosmic-pretzel-98  cloud-seven
ipad-head-map-35   cloud-seven           boom-pickle-38     rupelmonde
ipad-head-map-37   cloud-seven
ipad-head-map-39   cloud-seven

Every one of these, heads and bodies alike, has owner=visit.flanders. So all four heads see both bodies, and the rupelmonde head can discover and be handed a stream port on the cloud-seven body, and vice versa.

Why this is worth its own issue

Venue has been treated as a hard visibility filter in planning and in operational notes. It is not one. Two consequences, one already observed:

  1. It is load-bearing for #831. The claim-overwrite bug only bites when a head lists more than one multi-slot body, and the only reason heads at cloud-seven list a rupelmonde body is this OR. Had venue isolated, #831 would still be latent.
  2. A head can be directed to a body at another venue. Across venues that may be a different site on a different network, so the result is a failed stream rather than a wrong one, but nothing in the discovery path prevents it being offered.

What is NOT claimed here

The OR is plausibly deliberate, as a cross-venue fallback so a venue whose body is down can borrow another. The sort function supports that reading: same-venue bodies are ranked before cross-venue ones, with the comment "quickroute before cross-venue fallback". If so, the defect is in the documentation and the planning assumption rather than in the code, and the fix is to write down that venue is a PREFERENCE and owner is the real boundary.

That is the decision this issue asks for: is cross-venue fallback intended, and if it is, what is the actual isolation boundary meant to be? An owner is currently a very wide one.

Found while investigating #831. Nothing changed.

Session Context

Venue
rupelmonde

Comments (1)

api 18 Oct 2026 17:17

Owner ruling, 2026-10-18: cross-venue body use IS intended when the owner matches. A head may use a body at another venue provided they share an owner.

So the code is correct and this is a documentation defect. The OR in handlers_api.go:991 is deliberate, and the sort's quickroute before cross-venue fallback comment is the accurate description of the design: venue is a PREFERENCE, owner is the isolation boundary.

What needs correcting is the written assumption, in two places at least:

  • Planning and operational notes that describe venue as a hard visibility filter. It is not one, and a head at one venue will be offered bodies at another whenever the owner matches.
  • #771's body-selection notes, which the #771 session reports describe venue as a hard filter. Heads can reach bodies those notes say they cannot.

This also settles a question on #831. Heads listing several bodies at once is the DESIGNED behaviour, not an edge case, so taking a slot claim while merely listing bodies is structurally wrong rather than incidentally wrong. Every head in bxl1 shares owner=visit.flanders, so every head lists every body in the district, and with two multi-slot bodies present the claim overwrite in #831 fires on every listing.

Closing as not-a-bug. The documentation correction is the remaining work and belongs with whoever owns the body-selection notes.