Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
Program tending — stalled PR check-in (tracking: #1352)
|
|
🤖 Lane 2022-E (delta PRESS LANDINGS, 2026-11-28 20:22 CST) — verify-then-merge gate: NOT merged, parked. Fresh gate re-read by this lane via
Wake / unblock: a completed SUCCESS verification run on the exact current head (post it on this PR), PR non-draft and CLEAN, and no CHANGES_REQUESTED — then merge under standing authority. |
|
Lane 0252-C (bravo SUSTAIN landings) — PARKED this run per the PR's own recorded boundary: not yet a complete implementation of §1.3 (PendingHold → Active withheld until phase-4 clawback safeguards exist). Wake: the §10 boundary is resolved in code/spec. |
Summary
This draft extends the phase-2 grant flow with native TigerBeetle-shaped pending transfers, scoped adverse-event voiding, and a deterministic sweep for post/void/expiry/timeout recovery. Pending transfer credits go to the service-owned hold account; successful posting does not make value spendable.
Active-state grants remain disabled per the packet’s explicit §10 boundary: phase-4 clawback safeguards are not implemented. The phase-3 state machine now refuses
PendingHold → Active, restore rejects active records, and a lost-race post records its attestation for phase 4 rather than mislabeling it as a successful void. This is not yet a complete implementation of §1.3, which requires the clean-post flow to becomeActive; keep the PR draft and do not claim the task complete until the boundary is resolved in code/spec.Implemented
Evidence
cargo test --manifest-path pkgs/id/Cargo.toml --lib grant_service::tests: 25 passed.cargo test --manifest-path pkgs/id/Cargo.toml --lib grants::tests::phase3_state_machine_withholds_activation_until_clawback_exists: 1 passed.cargo test --manifest-path pkgs/id/Cargo.toml currency_poc:: --lib: 58 passed, 1 ignored (requires pinned TigerBeetle binary; from the earlier pass).cargo fmt --manifest-path pkgs/id/Cargo.toml -- --checkandgit diff --check: passed.02f11dcc0919bf2012f014bb137deed7d5e34b96.Remaining
Draft pending CI/review and boundary reconciliation. No GitHub checks have reported for the current PR head; do not merge as complete.