Skip to content

id: implement: pkgs/id currency client API — the §7 app-facing function surface from #2041 (gated on #2251 spec) #2803

Open

Description

@dezren39

From the #2041 investigation (token issuance in the ID graph)

The landed investigation doc for #2041 (doc/2026-10-30T19-18-00Z_investigation_token_issuance_id_graph/, §7) fixes the semantic contract for the app-facing currency function surface — one API across both bindings (graph-native and ledger-anchored):

define_currency / issue / award / pay / balance / supply / accept_payment / convert / snapshot

This issue implements that surface as a client library in pkgs/id. Gated on the #2251 spec, which fixes the wire formats and the API signatures/error semantics this library implements — do not start implementation until #2251's spec has landed; the shape of this issue may need amending to match it.

Scope

Acceptance criteria

  • Library implements the full §7 surface against id: design: graph token object formats + snapshot anchoring spec (from #2041) #2251's specced signatures, for both bindings
  • Worked examples from the investigation (§8: issue 100 self-tokens to another ID; §9: game awards coins to a winner) run end-to-end against the library in tests or a demo harness
  • Idempotency discipline verified: a retried mutating call reuses its persisted ID and cannot double-issue/double-pay

Program: ID platform expansion, epic #2056. Parent investigation: #2041. Gate: #2251 (object-format + API spec). Related: #2062 (control plane), #2066 (centralised exception), #2043 (currencies v1 synthesis).

Activity

  1. added
    app/id
    on Oct 30, 2026
  2. dezren39 commented on Oct 30, 2026

    @dezren39
    MemberAuthor

    Intake review

    Fleet monitor intake pass (2026-10-30).

  3. added
    priority/normal
    effort/l
    status/waiting-dependency
    meta/enriched
    queue/queued
    source/creator
    task/triage
    on Oct 30, 2026
  4. developing-today commented on Nov 3, 2026

    @developing-today
    Contributor

    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

  5. added
    work/assigned
    and removed
    queue/queued
    status/waiting-dependency
    on Nov 3, 2026
  6. 282 remaining items

  7. added
    queue/parked
    status/parked
    and removed
    status/in-progress
    queue/claimed
    on Nov 22, 2026
  8. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Picked up by oc-code-01 — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while oc-code-01 posts progress markers; after 120 minutes of silence any other worker may pick this up.)

    Resuming task 8674 in the existing graph-native client worktree; snapshot generation authority slice and focused tests are complete; continuing the bounded client tranche.

  9. added
    queue/claimed
    on Nov 22, 2026
  10. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Progress from oc-code-01: Task 8674 resumed in existing worktree. Added a two-client §8 issue/pay regression that checks Bob's signed payment and Alice's observed fold; named test running via fleet-build-lock. Existing snapshot-generation-authority slice preserved; ledger work remains gated on #2319.

  11. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Progress on task 8674: completed the §8 two-client issue/pay/observe example by asserting the snapshot frontier contains both author chains (Alice and Bob). All 11 currency::client::tests pass via fleet-build-lock; cargo fmt --check and git diff --check pass. Work remains graph-native only; ledger-bound integration stays gated on #2319. Existing branch/worktree preserved; no commit or PR created.

  12. removed
    queue/claimed
    on Nov 28, 2026
  13. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · census 2026-11-29 (lane CEN-C03)

    Gate update: this issue was gated on the #2251 spec — #2251 is now CLOSED, so the gate has lifted. Next step before implementing: read the landed #2251 spec and amend this issue's shape if its specced signatures/error semantics differ from the §7 list in the body. Acceptance criteria are complete. Priority: normal (unchanged); the parked status reflects the old gate.

  14. added
    status/triaged
    and removed
    status/parked
    queue/parked
    on Nov 29, 2026
  15. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): full recheck of this issue (body, all 93 comments, labels, dependency edges).

    STRENGTHS: Clean gating discipline: the body names its gate (#2251 spec) and says explicitly "do not start implementation until #2251's spec has landed; the shape of this issue may need amending to match it", scopes OUT the service/gateway/registry (#2062 follow-ups own those), and carries three checkable acceptance criteria including the idempotency proof. The work that did start respected the split: the graph-native binding slice (task 8674) has the §8 two-client issue/pay/observe example passing (11 currency::client tests) while the ledger-anchored gateway binding stayed gated.

    GAPS: The labels still showed the OLD gate state. #2251 is now CLOSED (verified today), so the spec gate has lifted — but status/parked + queue/parked still told every draw this issue was unstartable. One partial gate genuinely remains: the gateway binding waits on #2319 (OPEN at last verification, 2026-11-22); no native edge records that partial dependency, and an edge on the whole issue would misstate it, since the graph-native half is unblocked — it is recorded here instead.

    FIXES I APPLIED: Removed status/parked and queue/parked; set status/triaged. Priority left at priority/normal (a client library behind landed phases; nothing downstream is waiting on it today). kind/enhancement already correct.

    REMAINS: Next step for whoever picks this up: read the landed #2251 spec FIRST and amend this issue's §7 surface list if the specced signatures/error semantics differ, then land the graph-native slice (the task-8674 worktree work was never committed — check for its branch before restarting from zero). Gateway binding follows when #2319 lands. Nothing needs Drewry.

  16. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Wave-2 census pass (group code-01409-03205): rechecked live state, body, labels and recent comments firsthand via fleet gh immediately before editing.

    Strengths: detailed body (1985 chars) with context a picker-up can start from; acceptance criteria present in the body; single taxonomy priority band (priority/normal) — verified against live labels; kind label present (kind/enhancement).

    Gaps found: none material.

    Actions taken this pass: none — verified complete, no changes.

    Priority: priority/normal — checked against content, unchanged (no reprioritization). No closing keywords used; issue left open.

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/ideffort/lepic/id-programkind/enhancementmeta/enrichedpriority/normalsource/creatorstatus/triagedtask/triagework/assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions