rented standing drive can be WEDGED by a stale subdomain reservation no later drive can offboard — claim 409s until a human reads the broker ledger #754

Closed
opened 2026-08-24 19:37:18 +00:00 by ben · 3 comments
Owner

Two consecutive #720 drives (20260824T190713Z, 192250Z) redded at wizard-rent with the wizard showing "claim — That community name is already taken": the broker held a live rehearsal-c reservation (secret x0SHIAIA…) that no subsequent drive's teardown could offboard — each teardown greps the claim secret from its OWN run's state, and the run that had minted that reservation was an earlier red whose offboard had already failed once ("offboard refused/failed — records (if any) outlive this drive"). From then on every drive 409s at claim, its state never holds the blocking secret, and the standing drive is wedged until a human reads the ledger. Cleared by hand tonight (release 204 + offboard 204 with the ledger's own secret).

Also observed: rehearsal-rentfail* reservations accumulate (5 now, two unsuffixed) — same offboard-miss class, non-blocking only because rentfail slugs are timestamp-suffixed.

What would close this

Break the wedge class, e.g.: teardown falls back to a broker admin/ops route (or the drive-stamped slug pattern extends to the MAIN rehearsal slug so a stale reservation can never collide), or the broker expires unredeemed/unrented reservations on a TTL like everything else. The evidence for the failed-offboard chain is in the elitebook executor log around 16:4x ("offboarded rehearsal-c" succeeded there; the later wedge-maker is in the 18:1x–18:3x window).

Two consecutive #720 drives (`20260824T190713Z`, `192250Z`) redded at `wizard-rent` with the wizard showing **"claim — That community name is already taken"**: the broker held a live `rehearsal-c` **reservation** (secret `x0SHIAIA…`) that no subsequent drive's teardown could offboard — each teardown greps the claim secret from its OWN run's state, and the run that had minted that reservation was an earlier red whose offboard had already failed once ("offboard refused/failed — records (if any) outlive this drive"). From then on every drive 409s at claim, its state never holds the blocking secret, and the standing drive is wedged until a human reads the ledger. Cleared by hand tonight (release 204 + offboard 204 with the ledger's own secret). Also observed: `rehearsal-rentfail*` reservations accumulate (5 now, two unsuffixed) — same offboard-miss class, non-blocking only because rentfail slugs are timestamp-suffixed. ## What would close this Break the wedge class, e.g.: teardown falls back to a broker admin/ops route (or the drive-stamped slug pattern extends to the MAIN rehearsal slug so a stale reservation can never collide), or the broker expires unredeemed/unrented reservations on a TTL like everything else. The evidence for the failed-offboard chain is in the elitebook executor log around 16:4x ("offboarded rehearsal-c" succeeded there; the later wedge-maker is in the 18:1x–18:3x window).

swarm-claim host=elitebook-distributed-server-03 run=9830
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=9830 (automated multi-host claim — lowest live claim id works this ticket)

Ruled by agent under ADR 0174 — veto anytime.

The ticket's "What would close this" offered three approaches: (1) a broker admin/ops teardown route, (2) extend the drive-stamped slug pattern to the MAIN rehearsal slug, or (3) the broker expires unredeemed/unrented reservations on a TTL like everything else.

Chosen: option 3. A reservation now carries a claim time and a redeemed flag. It is REDEEMED the moment its name is Pointed at a live gateway — a real community (#278) whose name never expires. An UNREDEEMED reservation (claimed, never pointed) lapses after DefaultReservationTTL (24h, env-tunable IDSS_RESERVATION_TTL): past that, Registry.Claim re-issues the slug with a fresh secret, so an abandoned claim whose secret was lost self-heals in one lease window — no human ever reads the ledger. On-disk ledger → v3; a pre-TTL v2/v1 ledger grandfathers every name as redeemed (the only #278-safe reading, since a v2 record cannot say whether a name was ever pointed).

Why option 3 over the alternatives: (2) conflicts with the LE cert-budget design — the main rehearsal slug is deliberately FIXED and cert-harvested/reseeded (GOTCHAS #32); timestamp-suffixing it would burn Let's Encrypt's 5-certs/168h budget every drive. (1) widens the security posture (an unauthenticated force-offboard route). (3) is the "like everything else" fix the ticket itself names, stays wholly inside the broker's domain, and breaks the wedge class (self-heals, never needs a human).

Why a two-way door: revertible by a later commit, proven by an existing test (broker/internal/broker/reservation_ttl_test.go, red-before-green), and not on the one-way-door list (no credentials, no security-posture widening — a lapsed reservation only frees an abandoned name, never a live/redeemed one; no data destruction). The TTL value is env-tunable, so tuning is not a code change.

GOTCHAS #80. Fix landing on main this iteration.

**Ruled by agent under ADR 0174 — veto anytime.** The ticket's "What would close this" offered three approaches: (1) a broker admin/ops teardown route, (2) extend the drive-stamped slug pattern to the MAIN rehearsal slug, or (3) the broker expires unredeemed/unrented reservations on a TTL like everything else. **Chosen: option 3.** A reservation now carries a claim time and a `redeemed` flag. It is REDEEMED the moment its name is `Point`ed at a live gateway — a real community (#278) whose name never expires. An UNREDEEMED reservation (claimed, never pointed) lapses after `DefaultReservationTTL` (24h, env-tunable `IDSS_RESERVATION_TTL`): past that, `Registry.Claim` re-issues the slug with a fresh secret, so an abandoned claim whose secret was lost self-heals in one lease window — no human ever reads the ledger. On-disk ledger → v3; a pre-TTL v2/v1 ledger grandfathers every name as redeemed (the only #278-safe reading, since a v2 record cannot say whether a name was ever pointed). **Why option 3 over the alternatives:** (2) conflicts with the LE cert-budget design — the main rehearsal slug is deliberately FIXED and cert-harvested/reseeded (GOTCHAS #32); timestamp-suffixing it would burn Let's Encrypt's 5-certs/168h budget every drive. (1) widens the security posture (an unauthenticated force-offboard route). (3) is the "like everything else" fix the ticket itself names, stays wholly inside the broker's domain, and breaks the wedge *class* (self-heals, never needs a human). **Why a two-way door:** revertible by a later commit, proven by an existing test (`broker/internal/broker/reservation_ttl_test.go`, red-before-green), and not on the one-way-door list (no credentials, no security-posture widening — a lapsed reservation only frees an *abandoned* name, never a live/redeemed one; no data destruction). The TTL value is env-tunable, so tuning is not a code change. GOTCHAS #80. Fix landing on main this iteration.

close-report for #754 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 754,
  "status": "success",
  "commits": [
    "9d38ccbdd0456603109755526b903f1a4eac8c0f"
  ],
  "changed_files": [
    "STATUS.md",
    "broker/cmd/broker/main.go",
    "broker/internal/broker/broker.go",
    "broker/internal/broker/broker_test.go",
    "broker/internal/broker/http_test.go",
    "broker/internal/broker/reservation_ttl_test.go",
    "broker/internal/broker/store.go",
    "broker/internal/broker/store_test.go",
    "docs/GOTCHAS.md"
  ],
  "tests": [
    {
      "command": "cd broker && go build ./...",
      "exit_code": 0
    },
    {
      "command": "cd broker && go vet ./...",
      "exit_code": 0
    },
    {
      "command": "cd broker && go test ./...",
      "exit_code": 0
    },
    {
      "command": "cd broker && golangci-lint run ./...",
      "exit_code": 0
    },
    {
      "command": "cd broker && gofmt -l .",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Break the wedge class — a stale unredeemed reservation must not block later claims forever until a human reads the ledger": "broker/internal/broker/broker.go Registry.Claim now treats a lapsed (past-TTL, unredeemed) reservation as available and re-issues it; proven by TestRegistry_UnredeemedReservationLapsesAndIsReclaimable (reservation_ttl_test.go) — after the TTL a re-claim succeeds with a fresh secret, no human intervention",
    "The broker expires unredeemed/unrented reservations on a TTL like everything else (chosen approach)": "DefaultReservationTTL (24h) + IDSS_RESERVATION_TTL env in broker/cmd/broker/main.go; Reservation carries ClaimedAt+Redeemed; Registry.lapsedLocked applies the TTL only to unredeemed reservations",
    "A live community's name must never be handed away (issue #278 preserved)": "Issuer.Point calls Registry.Redeem after the zone write; a redeemed reservation never lapses — proven by TestRegistry_RedeemedReservationNeverLapses; pre-TTL v2/v1 ledgers grandfather every name as redeemed (TestDecodeReservations_V2GrandfathersRedeemed)",
    "The fix is durable across broker restarts": "on-disk schema v3 round-trips claimed_at+redeemed (TestReservationRecord_V3RoundTripsClaimedAtAndRedeemed); lapse+re-issue survives a restart (TestRegistry_LapseAndReissurePersists)"
  },
  "summary": "Broker subdomain reservations are now TTL-bounded: an unredeemed (claimed-but-never-pointed) reservation lapses after 24h so a stale reservation whose claim secret was lost can no longer wedge its slug forever, while a redeemed (live-community) reservation never expires.",
  "blockers": []
}
**close-report** for #754 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 754, "status": "success", "commits": [ "9d38ccbdd0456603109755526b903f1a4eac8c0f" ], "changed_files": [ "STATUS.md", "broker/cmd/broker/main.go", "broker/internal/broker/broker.go", "broker/internal/broker/broker_test.go", "broker/internal/broker/http_test.go", "broker/internal/broker/reservation_ttl_test.go", "broker/internal/broker/store.go", "broker/internal/broker/store_test.go", "docs/GOTCHAS.md" ], "tests": [ { "command": "cd broker && go build ./...", "exit_code": 0 }, { "command": "cd broker && go vet ./...", "exit_code": 0 }, { "command": "cd broker && go test ./...", "exit_code": 0 }, { "command": "cd broker && golangci-lint run ./...", "exit_code": 0 }, { "command": "cd broker && gofmt -l .", "exit_code": 0 } ], "criteria": { "Break the wedge class — a stale unredeemed reservation must not block later claims forever until a human reads the ledger": "broker/internal/broker/broker.go Registry.Claim now treats a lapsed (past-TTL, unredeemed) reservation as available and re-issues it; proven by TestRegistry_UnredeemedReservationLapsesAndIsReclaimable (reservation_ttl_test.go) — after the TTL a re-claim succeeds with a fresh secret, no human intervention", "The broker expires unredeemed/unrented reservations on a TTL like everything else (chosen approach)": "DefaultReservationTTL (24h) + IDSS_RESERVATION_TTL env in broker/cmd/broker/main.go; Reservation carries ClaimedAt+Redeemed; Registry.lapsedLocked applies the TTL only to unredeemed reservations", "A live community's name must never be handed away (issue #278 preserved)": "Issuer.Point calls Registry.Redeem after the zone write; a redeemed reservation never lapses — proven by TestRegistry_RedeemedReservationNeverLapses; pre-TTL v2/v1 ledgers grandfather every name as redeemed (TestDecodeReservations_V2GrandfathersRedeemed)", "The fix is durable across broker restarts": "on-disk schema v3 round-trips claimed_at+redeemed (TestReservationRecord_V3RoundTripsClaimedAtAndRedeemed); lapse+re-issue survives a restart (TestRegistry_LapseAndReissurePersists)" }, "summary": "Broker subdomain reservations are now TTL-bounded: an unredeemed (claimed-but-never-pointed) reservation lapses after 24h so a stale reservation whose claim secret was lost can no longer wedge its slug forever, while a redeemed (live-community) reservation never expires.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#754
No description provided.