GeezerVison is showing github.com — id: implement RateAuthorisation as a signed ID-graph object (design #2290) · Issue #5521 · developing-today/code
id: implement RateAuthorisation as a signed ID-graph object (design #2290) #5521DescriptionImplementation of an ID design that has not landed yet (zero implementation as of the 2026-11-04 inventory).
Design issue: #2290
Design doc: doc/2026-11-01_design_id2290.md (in developing-today/code)
Acceptance, in brief: RateAuthorisation exists as a signed, verifiable ID-graph object per the design.
Current state: only an unsigned type inside currency.rs; the signed ID-graph object is absent.
The design documents govern. If implementation shows the design is wrong or incomplete, file a design amendment rather than silently diverging.
Scope: pkgs/id and its tests. Filed 2026-11-04 under Drew's order to begin work on all not-implemented ID designs. Inventory: workspace/goals/keep-the-four-repos-healthy/files/id-design-implementation-inventory-2026-11-04.md (in the fleet workspace). Activitydeveloping-today commented on Nov 4, 2026 dezren39 commented on Nov 4, 2026 agent-note:v1
state: handed_off
Lane code-c claimed task 9588 (small_fix, attempt 2/3) and assigned it to the opencode execution lane per repo-queue lane assignment. Checkpointed handed_off — the opencode claimant launches the bound session to drive task 9588 to a terminal state; this lane does not work it directly.
Fresh verification: issue #5521 OPEN, no labels at claim time and no hard-stop labels. Claim labels added: queue/claimed + status/in-progress + work/assigned. CAP NOTE: attempt 2/3. dezren39 commented on Nov 4, 2026 agent-note:v1
event: handed_off
task: 9588 (repo-health-code-pilot; repo-worker-code; lane code-y)
at: 2026-11-04T16:40Z
found_via: atomic queue claim (lane code-y)
verified: Issue #5521 OPEN, no hard-stop labels; claim labels already synced (queue/claimed, status/in-progress, work/assigned). Execution-lane assignment for task 9588 is opencode — the bound opencode claimant session owns the implementation; this lane does not work it directly. NOTE: attempts 3/3 (at cap) after prior unlaunched handoff — if this claim's lease expires unbound, task 9588 risks terminal failure and a cap raise may be needed; its completion also unblocks task 9603 (issue #5536).
next: Claimant launches the bound opencode session for task 9588. dezren39 commented on Nov 4, 2026 🤖 Agent note · handed off
- Agent: queue worker (repo-worker-code), lane code-y
- Session / ID: task 9588
- Found via: queue claim
- Task: task 9588 (small_fix) on issue id: implement RateAuthorisation as a signed ID-graph object (design #2290) #5521 — implement design: RateAuthorisation as a signed ID-graph object.
- Expectation: handed off to the opencode execution lane — the laptop claimant launches a bound opencode session for task 9588, which drives it to a terminal state. This lane verified issue id: implement RateAuthorisation as a signed ID-graph object (design #2290) #5521 OPEN with claim labels already in sync and no hard-stop labels. URGENT: task 9588 is at attempts 6/6 (at cap) — if the claimant does not launch before this lease expires, the task strands and needs a cap raise (fleet-monitor look).
- Links: task 9588
dezren39 commented on Nov 5, 2026 agent-note:v1
state: handed off
task: 9588
worker: repo-worker-code
execution_lane: opencode
session_id: ses_e5e56d69879ffeC5TsorNv6AZj
issue: #5521
at: 2026-11-05T00:43:45.638435+00:00
summary: Claimed task bound to this OpenCode session and launched; the worker owns task execution. dezren39 commented on Nov 5, 2026 agent-note:v1
event: picked_up
task: 9588 (repo-health-code-pilot; worker repo-worker-code; session ses_e5e56d69879ffeC5TsorNv6AZj)
at: 2026-11-05T00:50Z
summary: Bound OpenCode session launched. Fresh checks: #5521 OPEN with the claimed lifecycle labels, no open competing PR; design #2290 and prior implementation PR #3888 are merged. Resuming in branch queue/9588-5521-rate-authorisation, worktree /home/user/git/fleet/9588, to compare the current implementation with the final design schema before editing. dezren39 commented on Nov 5, 2026 agent-note:v1
event: picked_up
task: 9588 (repo-health-code-pilot; worker repo-worker-code; lane aea12c82-c5af-4e5a-9b66-f8e360f87177)
at: 2026-11-05T02:05:00Z
summary: Claimed atomically by the OpenChamber scheduled lane after the prior bound session expired. Fresh validation: issue open, no hard-stop labels, lifecycle labels already synced, no open competing PR. Resuming existing branch queue/9588-5521-rate-authorisation in /home/user/git/fleet/9588; preserving the pre-existing uncommitted doc edit.
dezren39 commented on Nov 5, 2026 agent-note:v1
event: blocked
task: 9588 (repo-health-code-pilot; worker repo-worker-code; lane aea12c82-c5af-4e5a-9b66-f8e360f87177)
at: 2026-11-05T02:14Z
reason_class: packet_defect
summary: Blocked because the packet's current-state evidence is false: origin/main already contains a partial signed RateAuthorisation event implementation, and PR #3888 merged the signed authorization/revoke types and fold on 2026-11-01. The code is not final-design-complete (legacy ledger-string/JSON schema, no canonical CBOR or linked lineage), so the packet needs a corrected delta and explicit scope for gateway/quote phases. Issue #2290 remains open. The pre-existing worktree doc edit was preserved; no code changed.
next: Correct the packet against current main, then requeue/resume with the remaining design delta clearly bounded.
dezren39 commented on Nov 14, 2026 Released to the queue under Drew's 2026-11-13 unblock-all order (main chat, 23:53 CT). Task(s) 15191 moved from blocked/parked to queued in the fleet unblock-all pass (worker main-unblock-all-2026-11-13). Dependency gates still recorded on a task remain recorded — the dependency checker will re-block it if a gate is genuinely unmet. dezren39 commented on Nov 14, 2026 🤖 Agent note · triaged
Triage verdict — TRIAGED: premise stale; Phase 1 already landed, remaining work already split into Phase 2 / Phase 3
Fresh verification this shift (gh + laptop primary at origin/main 5319133):
- Issue id: implement RateAuthorisation as a signed ID-graph object (design #2290) #5521 is OPEN, no hard-stop labels. Its stated current state ("only an unsigned type inside currency.rs; the signed ID-graph object is absent") is stale:
pkgs/id/src/currency.rs at main contains the signed RateAuthorisation + RateAuthorisationRevoke chained-event types, validate() (issuer == event author, rate/bounds/cap/caller/time checks), sign_authorisation enforcement (fix id(currency): sign_authorisation never calls validate — a signed authorisation naming another issuer or with rate_den = 0 is dead on arrival, and signing succeeds silently #6422, commit 809585b), and the version/revocation fold. The 2026-11-05 blocked note on task 9588 already recorded this packet defect; this triage confirms it at current main.
- The phase split governs the remaining work: Phase 1 (id(currency): RateAuthorisation + revoke schema types and fold in pkgs/id (Phase 1 of #2290) #3800, schema types + fold in pkgs/id) is CLOSED. The landed Phase 1 follows the task 5741 design record on issue id: design: RateAuthorisation as a signed ID-graph object — schema, signing, revocation #2290 (ledger-string fields, JSON body, highest-version fold) — where that record and
doc/2026-11-01_design_id2290.md diverge (canonical CBOR, graph currency IDs, fail-closed fork handling), the landed record is the one the code and the Phase 2/3 issues cite; this triage does not re-decide them.
- Remaining work = Phase 2 (id(currency): gateway verification flow + revocation-set check for RateAuthorisation (Phase 2 of #2290) #3801, gateway verification flow + revocation-set check) and Phase 3 (id(currency): quote issuance + binding for RateAuthorisation (Phase 3 of #2290) #3802, quote issuance + binding). Issue id(currency): quote issuance + binding for RateAuthorisation (Phase 3 of #2290) #3802 already has a live queue task (task 5791, small_fix, blocked on Phase 2). Issue id(currency): gateway verification flow + revocation-set check for RateAuthorisation (Phase 2 of #2290) #3801 had no live queue task in any status — so this triage enqueues its implementation packet (named in the task 15191 completion result; dedupe key
repo-health:v1:fix:developing-today/code:issue:3801, priority 40 per the ID design track, Drew's priorities brief line 2).
- Design issue id: design: RateAuthorisation as a signed ID-graph object — schema, signing, revocation #2290 stays OPEN (in review); its one open question (Q1, platform emergency revocation) does not block Phase 2: the design's Decision 6 and the landed revoke type both record issuer-only graph revocation with local gateway suspension as the default.
Labels decided: issue #5521 — kind/enhancement, app/id (queue/queued removed: no live task remains for the umbrella; the phases carry the work). Issue #3801 — task/small-fix, priority/high, effort/l, kind/enhancement, queue/queued (from the enqueued packet). First concrete step for the follow-on: build the Phase 2 verification flow per issue #3801's body, steps 1–4, with fail-closed tests and zero TigerBeetle writes on failure. Acceptance for issue #5521 itself: Phases 2 and 3 (#3801, #3802) land; the umbrella closes when both phase issues close.
dezren39 commented on Nov 14, 2026 🤖 Agent note · triaged (correction to the follow-on named above)
- Agent: repo queue worker (repo-worker-code), lane code-a
- Session / ID: task 15191
Correction to my triage note on issue #5521 (comment 6876534882): the Phase 2 implementation packet I prepared for issue #3801 hit the queue dedupe — a triage task for issue #3801 already exists as task 16675 (queued, created 2026-11-14T11:19:25Z by the cleanup re-packet series). No second packet was enqueued. The follow-on path for Phase 2 is task 16675: its triage produces the coherent Phase 2 implementation packet for issue #3801, exactly as this triage did for the umbrella. Task 15191 completes as triaged with follow_up_task_ids [16675].
dezren39 commented on Nov 14, 2026
Agent note — task 16710 re-triage: umbrella already routed by task 15191 (lane any-b)
dezren39 commented on Nov 17, 2026 🤖 Agent note · triaged — duplicate; umbrella already routed, phase structure unchanged (task 18311, queue repo-health-code-pilot, lane code-a)
- Pickup: claimed task 18311 this shift; fresh revalidation of issue id: implement RateAuthorisation as a signed ID-graph object (design #2290) #5521 below. No held, user/owned, do-not-merge, or do-not-auto-edit labels.
- Verdict: DUPLICATE of task 15191's triage (2026-11-14, comment 6876534882, correction 6876543441; re-confirmed by task 16710 the same day) — this umbrella's work is fully split into its phases, and nothing about that structure has changed.
- Structure (fresh-checked this shift, 2026-11-17): Phase 1 already landed before the 2026-11-14 triage (the issue's "only an unsigned type inside currency.rs" premise is stale). Phase 2 = id(currency): gateway verification flow + revocation-set check for RateAuthorisation (Phase 2 of #2290) #3801 (gateway verification flow + revocation) — OPEN, dependency-blocked on the unlanded foundational slices id: poc: currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry across hibernation #2298 (currency gateway boundary PoC) and id(currency): gateway request envelope — canonical encoding, verify_strict, nonce window, idempotency IDs (from #2062) #2319 (gateway request envelope), both still OPEN today. Phase 3 = id(currency): quote issuance + binding for RateAuthorisation (Phase 3 of #2290) #3802 (quote issuance + binding) — OPEN, behind Phase 2. This umbrella closes when both phase issues close; its one open design question (Q1, platform emergency revocation) rides the phase work, as task 16710 recorded.
- Routing: none — the phase issues carry their own queue state (Phase 2's triage lineage dep-blocks on id: poc: currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry across hibernation #2298/id(currency): gateway request envelope — canonical encoding, verify_strict, nonce window, idempotency IDs (from #2062) #2319 structurally, per §5b a dependency, not an escalation), and an umbrella triage manufactures no packets. Movement on id: implement RateAuthorisation as a signed ID-graph object (design #2290) #5521 happens by landing id: poc: currency gateway boundary — UserDO snapshot cache, signed transfer + hold, idempotent retry across hibernation #2298/id(currency): gateway request envelope — canonical encoding, verify_strict, nonce window, idempotency IDs (from #2062) #2319, which unblocks id(currency): gateway verification flow + revocation-set check for RateAuthorisation (Phase 2 of #2290) #3801.
dezren39 commented on Nov 23, 2026 🤖 Agent note · done-check close-out (Lane HM, 2026-11-23)
#5521 is closed as completed: its acceptance already landed and is verified green on current main.
- The issue body (2026-11-04) states: "only an unsigned type inside currency.rs; the signed ID-graph object is absent." That was true at filing and is now stale.
- PR feat(id): currency.rate_authorisation + revoke types and fold (#3800) #3888 (
c7f7e1ffeb7, "feat(id): currency.rate_authorisation + revoke types and fold (id(currency): RateAuthorisation + revoke schema types and fold in pkgs/id (Phase 1 of #2290) #3800)") landed Phase 1 of design id: design: RateAuthorisation as a signed ID-graph object — schema, signing, revocation #2290; id(currency): RateAuthorisation + revoke schema types and fold in pkgs/id (Phase 1 of #2290) #3800 is closed/completed.
- On current main,
pkgs/id/src/currency.rs implements RateAuthorisation as an ordinary signed chained event (kind currency.rate_authorisation) per the design: sign_authorisation, validate (a body naming an issuer other than the event's verified author is invalid, not merely untrusted), RateAuthorisationRevoke + sign_revoke (kind currency.rate_authorisation_revoke; stops new conversions only), and fold_authorisation (highest version wins, lexicographically greatest canonical body breaks ties, a signed revoke folds the authorisation as revoked and no older version revives). Signed currency bodies also refuse duplicate JSON keys (Route the remaining duplicate-key gate sites through parse_json_without_duplicate_keys (Phase 4 follow-on of #6521) #8794).
- Verification (laptop worktree off origin/main,
nix develop in pkgs/id): cargo test --test probe_currency_validate — 5 passed / 0 failed; cargo test --lib currency — 134 passed / 0 failed, including 23 tests in the currency::tests module itself.
- Scope: the module is library-only by design; gateway/control-plane wiring is Phases 2–3 (id(currency): gateway verification flow + revocation-set check for RateAuthorisation (Phase 2 of #2290) #3801/id(currency): quote issuance + binding for RateAuthorisation (Phase 3 of #2290) #3802), outside this issue's acceptance.
Effect downstream: #5536 (conversion engine) named #5521 + #5522 as its blockers; it now waits on #5522 alone. Recorded on #5536 and on the #2056 epic.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|