Commit c74ca1d
Sibling to #46. #46 gives the **BYOC** payment path a per-signer
dual-path; this gives the **Live Runner** payment path the same, so
selecting an LR runner doesn't break payment on the default (Daydream)
signer.
## The bug
`_get_runner_payment` (live_runner.py) hardcoded `type="live"` for every
non-scope runner. `signer.daydream.live` only accepts `lv2v` → **`400
invalid job type`** → LR payment fails. The `lr-gateway` `lv2v` patch
only fixed the isolated sidecar; the gateway itself was still broken for
LR + Daydream. Without this, the transparent-routing plan's **Scenario 1
(Daydream + LR) breaks**.
## The fix
- Canonical `_payment_type_for_signer` moved to **`remote_signer.py`**
(the module that owns `LivePaymentSession`) so **both** payment paths
share it and LR does **not** import the soon-deprecated `byoc.py`.
Legacy Daydream → `lv2v`; modern signers → `byoc`.
- `_get_runner_payment`: Scope/LV2V stays `lv2v`; every other runner
uses the per-signer switch.
Two files, +28/−2. Both compile.
## Verified
Generalizes the exact fix proven on-chain via the lr-gateway `lv2v`
patch: LR single-shot + Daydream signer → `Payment tickets processed,
totalTickets=1` on Arbitrum.
## Follow-up
Once #46 merges, `byoc.py`'s local `_payment_type_for_signer` copy
should import this canonical one (trivial dedup) — the two PRs touch
disjoint files so they merge without conflict.
## Test
- [ ] `py_compile` (passes locally)
- [ ] LR + Daydream signer → `type:lv2v` → ticket redeems (the
Scenario-1 gate)
- [ ] LR + modern signer → `type:byoc` (gated on the pymthouse upstream
fix + orch byoc-single-shot verification)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 4e46379 commit c74ca1d
2 files changed
Lines changed: 28 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
737 | 738 | | |
738 | 739 | | |
739 | 740 | | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
740 | 750 | | |
741 | 751 | | |
742 | 752 | | |
743 | | - | |
| 753 | + | |
744 | 754 | | |
745 | 755 | | |
746 | 756 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
22 | 38 | | |
23 | 39 | | |
24 | 40 | | |
| |||
0 commit comments