Repository navigation
Commit ad579e0
committed
fix(snapshot): key ref minting on the producer that owns its refs, not the platform
snapshotRefMinting asked whether a capture came from the web channel, but a channel
is not a producer: the provenance table itself says several producers can feed one
channel with different guarantees, and only agent-browser resolves actions against
refs of its own. Any second adapter that lands on the web channel — a webdriver- or
CDP-backed one — mints no refs and needs dense positional numbering, which the
channel check would have taken away silently, making half its tree unaddressable.
The mode now asks the owning question of the producer, and the parameter is the
whole provenance pair rather than a partial one so no caller can hand over a channel
and leave it to guess who acquired the tree. Behavior is unchanged for every
producer that exists today; the table is what the next producer has to reason about.1 parent 0c4af43 commit ad579e0
2 files changed
Lines changed: 62 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | | - | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | | - | |
65 | | - | |
66 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
67 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
68 | 107 | | |
69 | 108 | | |
70 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
823 | 830 | | |
824 | 831 | | |
825 | 832 | | |
826 | 833 | | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
827 | 841 | | |
828 | 842 | | |
829 | | - | |
| 843 | + | |
830 | 844 | | |
831 | 845 | | |
832 | 846 | | |
833 | | - | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
834 | 851 | | |
835 | 852 | | |
836 | 853 | | |
| |||
0 commit comments