GeezerVison is showing github.com — id: design: graph token object formats + snapshot anchoring spec (from #2041) · Issue #2251 · developing-today/code
id: design: graph token object formats + snapshot anchoring spec (from #2041) #2251DescriptionFrom the #2041 investigation (token issuance in the ID graph)
Investigation #2041 (queue task 3352, result posted on that issue 2026-10-29) designed the graph-side token model on top of the #2040 TigerBeetle findings: currency identity = (issuer ID, definition hash); signed definition/issuance/transfer/burn/rate-offer/conversion-receipt/snapshot objects; two bindings (graph-native folds vs ledger-anchored via TigerBeetle user_data_128 cross-links); snapshot anchoring; the app-facing function surface (define_currency, issue, award, pay, accept_payment, convert, snapshot). This issue is the design spec that makes those shapes concrete. Spec only — no permanent feature is built on the unreviewed #2041 investigation (program rule, epic #2056).
Spec to produce (doc in pkgs/id/doc/ per repo convention, linked from this issue)
- Wire formats for the seven object types from id: investigate: token issuance in the ID graph — per-ID issuance, issuer snapshots, authorized conversion rates #2041, as extensions of the existing signed-event envelope (
pkgs/id/src/chain.rs), including the currency-ID derivation and exact rational rate representation.
- Fold rules for graph-native balances/supply: ordering, overdraft and fork treatment (consistent with
event_store applied/void semantics), and what a counting view (id: investigate: trust/visibility model — servers accept all signed objects; views count only allowed writers #2030) needs to refuse over-cap issuance.
- Snapshot format + anchoring join: fields, balance-root construction, cadence options, and the mechanical reconciliation between graph objects and TigerBeetle transfers via
user_data_128 (per id: investigate: TigerBeetle — multi-currency ledgers, conversions, per-coin vs balance model, 3-node cluster topology #2040).
- App-function API surface: signatures and error semantics for
define_currency / issue / award / pay / balance / supply / accept_payment / convert / snapshot, identical across both bindings, with the binding-specific verification steps spelled out.
- Conversion execution checklist: offer-version citation, frontier freshness check, rounding/spread leg treatment, receipt emission — matching id: investigate: TigerBeetle — multi-currency ledgers, conversions, per-coin vs balance model, 3-node cluster topology #2040 §2's linked-pair pattern.
Acceptance criteria
Program: ID platform expansion, epic #2056. Parent investigation: #2041. Related: #2040 (TigerBeetle), #2042 (tokens for real services — still open), #2043 (currencies v1 design, gated on #2042), #2030, #2037. Activitydeveloping-today commented on Oct 29, 2026 dezren39 commented on Oct 30, 2026
Agent note — picked up (queue task 3406, openchamber scheduled lane)
Claimed 2026-10-30 ~11:51Z for revalidation. Fresh GitHub check: issue OPEN (priority/high), no PR references it, no live branch. This is a 120m spec-writing task (spec doc to land in pkgs/id/doc/), beyond this ~30m lane — parking untouched (no branch, no worktree, no edits). dezren39 commented on Oct 30, 2026
Agent note — parked untouched (needs a full-budget shift)
- Queue task 3406 re-parked with zero state: no branch, no worktree, no edits. Next lane starts clean.
- Resume brief: packet revalidated 2026-10-30 ~11:52Z — issue OPEN, PR search empty, no queue/3406 or 2251 branch on the laptop clone, no
doc/ content under pkgs/id/ on origin/main. Deliverable is a landed spec doc (wire formats, fold rules, API signatures for the id: investigate: token issuance in the ID graph — per-ID issuance, issuer snapshots, authorized conversion rates #2041 token model) plus id: investigate: token issuance in the ID graph — per-ID issuance, issuer snapshots, authorized conversion rates #2041 abuse-case tracing and open questions routed to id: design: ID currencies v1 #2043 synthesis — a single design-writing shift, not a short-lane slice.
- Labels: issue carried
queue/queued + status/needs-triage, so this pass sets the parked end-state directly (queue/parked + status/parked + work/assigned, queued/needs-triage removed).
- Lane note: laptop
gh hosts.yml token was stale in this session; notes posted with transient GH_TOKEN from vault key github-cli.hosts-yml.
dezren39 commented on Oct 31, 2026 🤖 Agent note · parked
- Agent: queue worker (repo-worker-code), lane A shift
- Session / ID: queue task 3954
- Found via: queue claim (resume from park)
- Task: land the id: design: graph token object formats + snapshot anchoring spec (from #2041) #2251 graph token spec — PR id: graph token object formats + snapshot anchoring spec (#2251) #2741
- Expectation: parked 30m on an infra blocker: laptop SSH unreachable for the whole attempt (6+ drops,
Connection closed by UNKNOWN port 65535; tailscale status cannot finish connecting). Spec edits must run on the laptop worktree per the fleet runbook, so the fix could not be applied this shift.
- Resume brief (verified fresh this shift): Codex round-5 on head
a8c05171 raised exactly 2 P2s, both genuine, amendments drafted and recorded in the task checkpoint: (1) taker-signed authorization — §1.6 gains a taker_intent field, §5 step 3 gains a taker-authorization requirement, §2 fold refuses anchored receipts with no valid taker intent; (2) atomic cap check-and-reserve — §5 step 6 makes the steps 2–3 cap check and the reservation one atomic offer-scoped operation (reservation write = linearization point). All round 1–4 threads are resolved; only CI check on the PR is CodeRabbit (NEUTRAL). After pushing the fix: reply + resolve both threads, park on Codex re-review, merge when clean.
- Links: PR id: graph token object formats + snapshot anchoring spec (#2251) #2741 @
a8c05171
dezren39 commented on Oct 31, 2026 chatgpt-codex-connector commented on Oct 31, 2026 dezren39 commented on Oct 31, 2026 🤖 Agent note · picked up (resume)
- Agent: queue worker (repo-worker-code), lane C shift
- Session / ID: queue task 3954
- Found via: queue claim — resumed from checkpoint, did not restart
- Task: land the id: design: graph token object formats + snapshot anchoring spec (from #2041) #2251 graph token spec — PR id: graph token object formats + snapshot anchoring spec (#2251) #2741
- Expectation: Codex round-6 on head
e1feebd97 completed clean ("Didn't find any major issues", codex-review-state has_unresolved_findings=false, zero unresolved review threads — verified fresh via gh). pkgs/id/doc placement verified: pkgs/id/doc is a tracked symlink to ../../doc, so the spec at doc/2026-10-30T13-25-00Z_design_graph_token_formats_snapshot_anchoring.md is reachable at the required path. Only check is CodeRabbit (skipping/neutral, docs-only PR). Proceeding to merge.
dezren39 commented on Oct 31, 2026
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|