GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id: build: grant vesting reconciler and control-plane↔ledger drift alarm · Issue #2295 · developing-today/code

id: build: grant vesting reconciler and control-plane↔ledger drift alarm #2295

New issue
Copy link
New issue
Copy link
Open
Open
id: build: grant vesting reconciler and control-plane↔ledger drift alarm#2295
Copy link
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workepic/id-programReprioritization program epic (2026-11-12)kind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)queue/blockedQueue or user escalation statesource/creatorFiled by the new-issue-creator jobstatus/blockedQueue or user escalation statetask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Oct 29, 2026
Issue body actions

Follow-up from the #2065 design (doc/2026-10-29T12-10-00Z_design_refundable_grants_pending_transfers/, PR #2293), §6.3.

Why

The pending-transfer mechanism adds failure modes the posted design did not have: a service that dies between reserve and vest leaves the user's paid grant to expire on the TigerBeetle timeout, and a crash between writing intent and submitting the transfer leaves a row whose state disagrees with the ledger.

Scope

  • Sweeper: state=pending AND window_ends_at < now → post (retry with backoff), then mark posted; Expired is a reconcilable state, not a loss.
  • Safety net: timeout = window + slack (design recommends +72h) so a dead service cannot hold a grant forever; the sweeper must post before that, and the slack is a last resort.
  • Drift alarm: compare each grant's pending_transfer_id resolution in TigerBeetle against the row state; mismatch is an alert (never a silent fix).
  • Late-refund fallback per §6.2: clawback attempt, on exceeds_credits mark the grant debt and expose it to the gateway's grant/redemption refusal.
  • Metrics: pending count, oldest pending age, expired-then-reconciled count, drift count, debt total.

Depends on

The grant service issue (creates the table and endpoints this reads).

Done when

A test cluster with a killed service between reserve and vest self-heals via the sweeper, a seeded drift row raises an alarm, and an after-vest refund lands in debt rather than throwing.

Acceptance criteria

  • Sweeper posts pending grants past window end (retry with backoff) and marks them posted; Expired is handled as reconcilable, never a silent loss
  • Drift alarm fires on a seeded row whose TigerBeetle pending_transfer_id resolution disagrees with the row state; mismatches alert, never auto-fix silently
  • After-vest refund path lands the grant in debt and exposes it to gateway refusal (no throw)
  • Metrics exist: pending count, oldest pending age, expired-then-reconciled count, drift count, debt total
  • Killed-service test: a service dying between reserve and vest self-heals via the sweeper

Activity

Next
  1. dezren39
    added
    status/needs-triageNot yet triaged; needs a first look
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    kind/enhancement
    on Oct 29, 2026
  2. developing-today commented on Oct 29, 2026

    @developing-today
    developing-todayBot
    on Oct 29, 2026 – with developing.today
    Contributor
    More actions

    CODE-1151

  3. dezren39
    added
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 29, 2026
  4. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    Intake review

    Related: #2065 design (PR #2293, §6.2/§6.3), the grant-service build issue #2294 (creates the table this reads), epic #2056

    Notes: Follow-up from the #2065 design; depends on #2294's grant table/endpoints existing first.

    Risks: The +72h timeout slack is a last resort — a sweeper that routinely relies on it is masking a dead service.

    Suggested approach: Build after #2294; test-first with the killed-service and seeded-drift scenarios from the body's Done-when.

    🤖 Agent note · filed

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: repo-fleet-monitor run 2026-10-29T12:12Z (07:12 CDT)
    • Found via: monitor reconciliation
    • Task: Duty 2 intake enrichment — acceptance criteria appended (original body preserved verbatim above it), labels normalized, meta/enriched applied. Still-live check this pass: no merged PR or fix commit explicitly resolving this issue was found; where a queue triage task owns verification, it is named in the notes.
    • Expectation: see the effort label; done = the appended acceptance criteria are met.
    • Links: this issue
  5. github-actions
    assigned
    dezren39
    on Oct 29, 2026
  6. dezren39
    added
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  7. developing-today commented on Nov 3, 2026

    @developing-today
    developing-todayBot
    on Nov 3, 2026 – with developing.today
    Contributor
    More actions

    agent-note:v1
    state: triaged (coverage pass)
    Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 40 (priority/normal). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
    Found via: coverage pass 2026-11-03

  8. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 3, 2026
  9. 30 remaining items

  10. dezren39
    removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 4, 2026
  11. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: done (triaged; implementation dependency-blocked)
    task: 7866 (triage, repo-health-code-pilot; worker repo-worker-code; OpenChamber scheduled lane 7b47536b-c162-444c-be8a-3a9538cc4cb5)
    by: openchamber-scheduled-lane
    at: 2026-11-04T04:19Z

    Fresh verification: issue #2295 remains OPEN; no matching implementation PR exists. Current origin/main is 12fcad9, and no grant-vesting reconciler or grant-service implementation was found under pkgs/id.

    Dependencies and ordering:

    1. id: build: TigerBeetle cluster provisioning — RTT mesh gate, 6-replica format, dead-replica runbook + rehearsal #2292 remains OPEN and formally blocked/escalated (queue/blocked, status/blocked, user/escalated) because its RTT mesh and 6-replica TigerBeetle rehearsal require Drew-provided cloud accounts and a spend cap. Its recorded escalation names the access and cost decisions required.
    2. id: decide: grant refund window length and whether pending tokens are spendable #2296 remains OPEN in user/review; this is Drew's policy decision on the refund window and whether pending tokens are spendable. Active triage task 7322 owns that decision; do not choose a default here.
    3. id: build: grant service — pending-transfer grants (register/vest/void) with control-plane grant records #2294, the grant service/table/API prerequisite, remains OPEN and unbuilt. Its existing triage records those same prerequisites.
    4. id: build: grant vesting reconciler and control-plane↔ledger drift alarm #2295's reconciler/drift alarm follows id: build: grant service — pending-transfer grants (register/vest/void) with control-plane grant records #2294. Scope remains as written in this issue.

    No duplicate implementation task was enqueued while the upstream service and its blockers remain unresolved. Task 7866 is complete as triaged. Transient lifecycle labels set by this task were removed; issue classification labels remain.

  12. developing-today commented on Nov 8, 2026

    @developing-today
    developing-todayBot
    on Nov 8, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · done (re-triage under the 2026-11-07 triage doctrine — real and current, dependency-blocked)

    • Agent: queue worker (repo-worker-code), Lane A shift
    • Session / ID: queue task 12047 · repo-queue-worker-shift 2026-11-07 20:00 CST
    • Found via: queue claim (direct execution lane)
    • Task: Re-triage of issue id: build: grant vesting reconciler and control-plane↔ledger drift alarm #2295 (grant vesting reconciler + drift alarm) after the done-task-only audit (issue queue: no reconciliation between open issues and queue coverage — non-creator filings never get queue items #7016) found task 7866 marked done with no landed evidence.
    • Expectation: verdict below; issue stays OPEN

    Verdict — REAL and CURRENT (not invalid), but a fix packet today would be unworkable: the prerequisite chain is unbuilt and two gates sit with Drew

    Verified fresh 2026-11-08 (gh + code search):

    • Issue id: build: grant vesting reconciler and control-plane↔ledger drift alarm #2295 OPEN; no hard-stop labels on it. The design basis is live: follow-up of the id: design: refundable grants via pending transfers — Steam premium tokens voidable through the refund window #2065 design (doc/2026-10-29T12-10-00Z_design_refundable_grants_pending_transfers/, PR docs(id): design refundable grants as pending transfers (#2065) #2293), §6.3.
    • Nothing has landed: code search for vesting in pkgs/id returns 0 files; no PR references this issue (search hits are number collisions). The audit's "no evidence" finding is confirmed — task 7866's completion was a triage verdict, not work.
    • Dependency state today (all OPEN):
      1. Issue id: build: grant service — pending-transfer grants (register/vest/void) with control-plane grant records #2294 (grant service — the table/endpoints this reconciler reads) — status/triaged, unbuilt. It is in the queue system now: its current triage task was claimed and handed to the opencode claimant this same shift (2026-11-07 Lane A). id: build: grant vesting reconciler and control-plane↔ledger drift alarm #2295's work cannot start before id: build: grant service — pending-transfer grants (register/vest/void) with control-plane grant records #2294's service exists.
      2. Issue id: decide: grant refund window length and whether pending tokens are spendable #2296 (decide: refund window length + whether pending tokens are spendable) — status/blocked + queue/blocked + user/escalated. This is Drew's policy decision, and id: build: grant vesting reconciler and control-plane↔ledger drift alarm #2295's late-refund fallback (§6.2 clawback → debt semantics) is defined by its answer. Not choosable by a worker.
      3. Issue id: build: TigerBeetle cluster provisioning — RTT mesh gate, 6-replica format, dead-replica runbook + rehearsal #2292 (TigerBeetle cluster provisioning / rehearsal) — status/blocked + queue/blocked + user/escalated (cloud accounts + spend cap are Drew's). id: build: grant vesting reconciler and control-plane↔ledger drift alarm #2295's "Done when" test cluster depends on this rehearsal environment.

    Doctrine handling: the issue is validated real — the invalid exit does not apply. The fix-packet conversion the doctrine prescribes for real issues is deferred, not skipped: a small_fix packet enqueued today would claim against an unbuilt prerequisite and two escalated decisions, burn its attempts, and die in queue — the exact failure this audit programme exists to stop. Resume condition (named, checkable): when issue #2294 lands (grant service merged) AND issue #2296 carries Drew's decision, convert issue #2295 to a fix packet (dedupe repo-health:v1:fix:developing-today/code:issue:2295) scoped to the sweeper + drift alarm + metrics in this issue's body. Labels synced to status/blocked to mirror the dependency state.

  13. dezren39
    added
    status/blockedQueue or user escalation state
    epic/id-programReprioritization program epic (2026-11-12)
    queue/claimedQueue worker lifecycle state
    on Nov 8, 2026
  14. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · blocked (dependency on issue #2294)

    • Agent: repo queue worker, lane code-b (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-code-b run 2026-11-16 19:28 CST; task 18218
    • Task: task 18218 (triage packet, bulk intake 2026-11-16) for issue id: build: grant vesting reconciler and control-plane↔ledger drift alarm #2295: id: build: grant vesting reconciler and control-plane↔ledger drift alarm.
    • Fresh verification (2026-11-17): issue id: build: grant vesting reconciler and control-plane↔ledger drift alarm #2295 OPEN, triage labels present (priority/normal, effort/m, kind/enhancement), no held / user/owned / do-not-merge / do-not-auto-edit labels. Re-triage of record (task 12047, 2026-11-08): issue is REAL and CURRENT, dependency-blocked, with a named resume condition — convert to a fix packet when issue id: build: grant service — pending-transfer grants (register/vest/void) with control-plane grant records #2294 (grant service) lands AND issue id: decide: grant refund window length and whether pending tokens are spendable #2296 carries Drew's decision. Gate re-check this shift: issue id: decide: grant refund window length and whether pending tokens are spendable #2296 is CLOSED (Drew ruled 2026-11-08: 14-day refund hold from config; pending units never spendable as spending) — cleared. Issue id: build: TigerBeetle cluster provisioning — RTT mesh gate, 6-replica format, dead-replica runbook + rehearsal #2292's spend was deferred by Drew 2026-11-16 and gates only dev-cluster acceptance runs — narrowed, per task 13909's note on id: build: grant service — pending-transfer grants (register/vest/void) with control-plane grant records #2294. But issue id: build: grant service — pending-transfer grants (register/vest/void) with control-plane grant records #2294 is still OPEN and unbuilt (build brief of record stands; its bulk triage task 18217 completed tonight with nothing built yet) — verified fresh this shift. The resume condition is therefore NOT met, so task 18218 is blocked as a §5b dependency on issue id: build: grant service — pending-transfer grants (register/vest/void) with control-plane grant records #2294; the broker releases it when id: build: grant service — pending-transfer grants (register/vest/void) with control-plane grant records #2294 closes, at which point the fix-packet conversion named by task 12047 (dedupe repo-health:v1:fix:developing-today/code:issue:2295) should be made. This is a dependency, not an escalation — both Drew gates on this chain are answered.
    • Links: task 18218 · issue id: build: grant vesting reconciler and control-plane↔ledger drift alarm #2295 · issue id: build: grant service — pending-transfer grants (register/vest/void) with control-plane grant records #2294 · issue id: decide: grant refund window length and whether pending tokens are spendable #2296 · issue id: build: TigerBeetle cluster provisioning — RTT mesh gate, 6-replica format, dead-replica runbook + rehearsal #2292 · task 12047
  15. dezren39
    added
    queue/blockedQueue or user escalation state
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 17, 2026
  16. dezren39
    removed their assignment
    on Nov 20, 2026
  17. dezren39 commented on Nov 20, 2026

    @dezren39
    dezren39
    on Nov 20, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triage revalidated (task 18218, 2026-11-20)

    Fresh state: #2295 remains OPEN with status/blocked + queue/blocked and no hold labels. The resume condition from the existing triage verdict is not met: #2294 remains OPEN. Its core grant module slice is merged as PR #11196, but #2294 acceptance is incomplete; its latest recorded build notes list gateway endpoints, Postgres GrantStore, and real TigerBeetle PendingLedger as remaining. Therefore the vesting reconciler/drift alarm must remain gated on #2294 closing (the grant service landing), not merely on the core slice merging.

    Other gates: #2296 is CLOSED (policy decision settled). #2292 remains OPEN but was narrowed to dev-cluster acceptance runs, not the grant-service build; it does not clear the #2294 dependency.

    Verdict: keep #2295 blocked on #2294; no duplicate implementation packet created. Recheck and convert to the scoped reconciler fix packet when #2294 closes, per the existing task 12047 resume condition. backlog_updated:false.

    Links: #2294 · PR #11196 · #2296 · #2292

  18. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triage revalidated (task 18218, 2026-11-22, OpenChamber scheduled lane oc-code-05)

    Fresh state: #2295 OPEN (status/blocked, queue/blocked, no hold labels); dependency #2294 still OPEN (status/parked) — merged slice is only PR #11196 (grants core module); gateway endpoints, Postgres GrantStore, and the real TigerBeetle PendingLedger remain. The resume condition from the standing triage verdict is not met.

    Verdict unchanged: dependency-blocked on #2294; no new follow-on packet enqueued. Task 18218 returns to blocked with reason class dependency.

  19. developing-today-fleet
    marked this as blocked on Nov 25, 2026
    • id: build: grant service — pending-transfer grants (register/vest/void) with control-plane grant records #2294
  20. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 25, 2026 – with developing.today fleet
    Contributor
    More actions

    agent-note:v1
    Agent: felix (Muse lane, 2026-11-25)
    State: graph edge added — issue-graph hygiene audit #14863, slice 5

    The standing triage verdict (task 18218, revalidated 2026-11-22) records this issue as dependency-blocked on #2294 (grant service; still OPEN, parked — gateway endpoints, Postgres GrantStore and the real TigerBeetle PendingLedger remain). The dependency was prose-only; added the native blocked_by edge #2295 -> #2294 and verified it via the dependencies API. No label change. Refs #14863

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

    app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workepic/id-programReprioritization program epic (2026-11-12)kind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)queue/blockedQueue or user escalation statesource/creatorFiled by the new-issue-creator jobstatus/blockedQueue or user escalation statetask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.