GeezerVison is showing github.com — id(currency): quote issuance + binding for RateAuthorisation (Phase 3 of #2290) · Issue #3802 · developing-today/code
id(currency): quote issuance + binding for RateAuthorisation (Phase 3 of #2290) #3802Labels app/idPackage/app: id (pkgs/ or apps/ in this repo)epic/id-programReprioritization program epic (2026-11-12)queue/parkedQueue task is parked (waiting on CI, time, or an event)source/creatorFiled by the new-issue-creator jobstatus/parkedDeliberately paused with a recorded resume conditiontask/triageQueue packet kind: verify, reproduce, and route this item DescriptionPhase 3 of the RateAuthorisation set tracked by issue #2290. Design record: the task 5741 triage comment on issue #2290 (quote binding). Depends on the Phase 1 and Phase 2 issues in this set.
Build:
- Quote issuance: a short-lived gateway-issued control-plane record {quote_id, authorisation_id, authorisation_version, authorisation_event_hash, x, computed_y, fee, issued_at, quote_expires_at} with a 60-second lifetime (issue id: design: conversion engine — linked transfer pairs, rate authorisation, liquidity accounts #2063 §2). computed_y uses the scale-aware integer-rational rule, rounding down in the LP's favour.
- Execution binding: a conversion submission must reference an unexpired quote, and the gateway re-runs the Phase 2 live-state checks at submission; a re-issued (new version) or revoked authorisation never silently satisfies an old quote — hash/version mismatch fails pre-flight.
Acceptance: tests show an expired quote refused, a quote against a since-revoked authorisation refused, a quote against a superseded version refused, and a valid quote executing with exactly the quoted y and fee. Activitydeveloping-today commented on Nov 1, 2026 dezren39 commented on Nov 1, 2026 dezren39 commented on Nov 1, 2026 dezren39 commented on Nov 17, 2026 agent-note:v1
state: blocked (dependency)
task: 18268 (repo-health-code-pilot, OpenChamber scheduled lane code-f)
Fresh verification: #3802 remains OPEN (Phase 3 of #2290); Phase 2 prerequisite #3801 remains OPEN with queue/blocked + status/blocked. Phase 1 #3800 is CLOSED and PR #3888 is MERGED. The Phase 2 interfaces/implementation have not landed; earlier issue history records task 5791 as already dependency-blocked on #3801. No Phase 3 PR exists. No implementation or worktree created on this task.
Disposition: block this task on #3801; resume/retriage only after Phase 2 unblocks and lands, then revalidate #3802 and ownership. dezren39 commented on Nov 19, 2026 OpenChamber scheduled lane checkpoint for queue task 5791: parked after fresh verification because Phase 2 issue #3801 remains OPEN. Its latest triage note (2026-11-17) says the gateway verification flow and revocation-set check remain unimplemented and need a scoped implementation packet; #3801 still has status/blocked and queue/blocked. #3802 remains OPEN. No worktree or code changes were made.
Resume only after the Phase 2 gateway/registry/factory interfaces and implementation land; then revalidate #3802 against current main and ownership. Queue task 5791 is parked until the next recheck.
dezren39 commented on Nov 20, 2026 **Triage update — task 18268 (openchamber-scheduled-lane), 2026-11-20**
Fresh check: #3802 is OPEN; Phase 1 #3800 is CLOSED (PR #3888 merged). Phase 2 #3801 remains OPEN with queue/blocked and status/blocked; its latest triage says the control-plane registry/LP eligibility, account-factory bindings/status, and gateway submission interface required by its acceptance are still absent, with no implementation PR found. Existing Phase 3 implementation task #5791 remains parked on #3801.
Verdict: Phase 3 quote issuance/binding is not ready to start. Task 18268 is dependency-blocked on #3801; revalidate #3801 and #3802 after Phase 2 lands. dezren39 commented on Nov 23, 2026 Lane felix claiming this (queue task 5791).
Done check against current main (0e21878): Phase 1 (#3800) and the Phase 2 verification flow (#3801, pkgs/id/src/currency/conversion.rs) are landed, but no quote record, quote issuance, or execution binding exists anywhere in the gateway code — this Phase 3 slice is the remainder, built exactly to this issue's text and the #2290 design record (task 5741 triage): the nine-field gateway-issued quote record with a 60-second lifetime, computed_y by the scale-aware integer-rational rule (floor, LP's favour) via the pure layer's convert_amount, fee via fee_amount, and execution binding that re-runs the Phase 2 live-state checks at submission and fails pre-flight on expiry, revocation, or a version/event-hash pin mismatch.
Branch: felix/3802-quote-binding. Evidence will be a remote fleet-command run of the currency test module with the new tests verified by name. dezren39 commented on Nov 23, 2026 Triage revalidation (lane oc-code-06, queue task 18268): gate MET — Phase 3 unblocked.
Routing: no new implementation packet needed; Phase 3 work proceeds under task 5791. This triage closes with gate-met. dezren39 commented on Nov 23, 2026 Lane felix, task 5791 — done. PR #13788 (unmerged, for Felix's review) says Closes #3802: this issue's text is exactly quote issuance + binding, and both build items are implemented with the acceptance covered verbatim.
What landed (all in pkgs/id/src/currency/conversion.rs, on the Phase 2 verifier):
ConversionQuote — the nine-field gateway-issued record from the design record, 60-second lifetime; computed_y via the pure layer's scale-aware convert_amount, fee via fee_amount.
ConversionVerifier::issue_quote — verifies the submission as at execution, pins the folded version + event hash (the presented event's operation id, traced through a private verify_folded refactor of verify(), behaviour unchanged), stores the quote; commits no usage.
ConversionVerifier::verify_quoted — execution binding: UnknownQuote / QuoteExpired / QuoteMismatch pre-flight, the Phase 2 live-state checks re-run at submission (since-revoked refused by the re-run's Revoked), and the version/event-hash pin compared against the fresh fold (QuoteStale on a re-issued authorisation). Execution carries exactly the quoted computed_y and fee.
Evidence: remote run 45265996762 — cargo test --manifest-path pkgs/id/Cargo.toml --lib currency::, 119 passed / 0 failed; the nine new tests verified by name in the log, every refusal asserting FAILED_PRE_SUBMIT, untouched usage, and zero ledger writes.
Remainder after this slice: none for #3802 as written. Outside the issue (unchanged from #3801's boundary): settlement composition into the linked transfer chain and wiring into GatewayService::handle, including the ConversionControl seam's production binding. New dependencies: none.
MetadataMetadataapp/idPackage/app: id (pkgs/ or apps/ in this repo)epic/id-programReprioritization program epic (2026-11-12)queue/parkedQueue task is parked (waiting on CI, time, or an event)source/creatorFiled by the new-issue-creator jobstatus/parkedDeliberately paused with a recorded resume conditiontask/triageQueue packet kind: verify, reproduce, and route this item DevelopmentNo branches or pull requestsIssue actions
|