- Co-Authored-By
- Christopher David <chris@openagents.com>
Tighten capacity evidence handling
Deploy story
What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.
Not deployed through the forge lane
No push, promotion, build, or deploy receipt references this commit (receipts are scanned over a bounded recent window). Changes shipped by full node replacement carry their proof in the release gate receipt instead.
Changed files
-
modified
docs/capacity-and-matching-api.md -
modified
lib/openagents/capacity.ex -
modified
lib/openagents/capacity/broker.ex -
modified
lib/openagents/capacity/connected.ex -
modified
lib/openagents/capacity/estimate.ex -
modified
lib/openagents/capacity/evidence.ex -
modified
test/openagents/capacity_test.exs
Diff
7 files changed, +128 -80
docs/capacity-and-matching-api.md modified +1
@@ -213,6 +213,7 @@ A refusal returns schema `openagents.capacity_refusal.v1`:
| 213 | 213 |
|
| 214 | 214 |
|
| 215 | 215 |
|
| 216 |
|
|
| 216 | 217 |
|
| 217 | 218 |
|
| 218 | 219 |
|
lib/openagents/capacity.ex modified +32 -26
@@ -177,11 +177,11 @@ defmodule OpenAgents.Capacity do
| 177 | 177 |
|
| 178 | 178 |
|
| 179 | 179 |
|
| 180 |
|
|
| 181 |
|
|
| 180 |
|
|
| 181 |
|
|
| 182 | 182 |
|
| 183 |
|
|
| 184 |
|
|
| 183 |
|
|
| 184 |
|
|
| 185 | 185 |
|
| 186 | 186 |
|
| 187 | 187 |
|
@@ -227,11 +227,30 @@ defmodule OpenAgents.Capacity do
| 227 | 227 |
|
| 228 | 228 |
|
| 229 | 229 |
|
| 230 |
|
|
| 230 |
|
|
| 231 |
|
|
| 232 |
|
|
| 233 |
|
|
| 234 |
|
|
| 235 |
|
|
| 236 |
|
|
| 237 |
|
|
| 238 |
|
|
| 239 |
|
|
| 240 |
|
|
| 241 |
|
|
| 242 |
|
|
| 243 |
|
|
| 244 |
|
|
| 245 |
|
|
| 246 |
|
|
| 247 |
|
|
| 248 |
|
|
| 249 |
|
|
| 231 | 250 |
|
| 232 | 251 |
|
| 233 | 252 |
|
| 234 |
|
|
| 253 |
|
|
| 235 | 254 |
|
| 236 | 255 |
|
| 237 | 256 |
|
@@ -254,31 +273,21 @@ defmodule OpenAgents.Capacity do
| 254 | 273 |
|
| 255 | 274 |
|
| 256 | 275 |
|
| 257 |
|
|
| 276 |
|
|
| 258 | 277 |
|
| 259 | 278 |
|
| 260 | 279 |
|
| 261 |
|
|
| 280 |
|
|
| 281 |
|
|
| 282 |
|
|
| 283 |
|
|
| 262 | 284 |
|
| 263 | 285 |
|
| 264 | 286 |
|
| 265 | 287 |
|
| 266 | 288 |
|
| 267 | 289 |
|
| 268 |
|
|
| 269 |
|
|
| 270 |
|
|
| 271 |
|
|
| 272 |
|
|
| 273 |
|
|
| 274 |
|
|
| 275 |
|
|
| 276 |
|
|
| 277 |
|
|
| 278 |
|
|
| 279 |
|
|
| 280 |
|
|
| 281 |
|
|
| 290 |
|
|
| 282 | 291 |
|
| 283 | 292 |
|
| 284 | 293 |
|
lib/openagents/capacity/broker.ex modified +16 -17
@@ -3,6 +3,21 @@ defmodule OpenAgents.Capacity.Broker do
| 3 | 3 |
|
| 4 | 4 |
|
| 5 | 5 |
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 6 | 21 |
|
| 7 | 22 |
|
| 8 | 23 |
|
@@ -50,23 +65,7 @@ defmodule OpenAgents.Capacity.Broker do
| 50 | 65 |
|
| 51 | 66 |
|
| 52 | 67 |
|
| 53 |
|
|
| 54 |
|
|
| 55 |
|
|
| 56 |
|
|
| 57 |
|
|
| 58 |
|
|
| 59 |
|
|
| 60 |
|
|
| 61 |
|
|
| 62 |
|
|
| 63 |
|
|
| 64 |
|
|
| 65 |
|
|
| 66 |
|
|
| 67 |
|
|
| 68 |
|
|
| 69 |
|
|
| 68 |
|
|
| 70 | 69 |
|
| 71 | 70 |
|
| 72 | 71 |
|
lib/openagents/capacity/connected.ex modified +15 -19
@@ -3,7 +3,7 @@ defmodule OpenAgents.Capacity.Connected do
| 3 | 3 |
|
| 4 | 4 |
|
| 5 | 5 |
|
| 6 |
|
|
| 6 |
|
|
| 7 | 7 |
|
| 8 | 8 |
|
| 9 | 9 |
|
@@ -16,29 +16,25 @@ defmodule OpenAgents.Capacity.Connected do
| 16 | 16 |
|
| 17 | 17 |
|
| 18 | 18 |
|
| 19 |
|
|
| 20 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 | 21 |
|
| 22 | 22 |
|
| 23 | 23 |
|
| 24 |
|
|
| 25 |
|
|
| 26 |
|
|
| 27 |
|
|
| 28 |
|
|
| 24 |
|
|
| 25 |
|
|
| 26 |
|
|
| 27 |
|
|
| 28 |
|
|
| 29 |
|
|
| 30 |
|
|
| 31 |
|
|
| 32 |
|
|
| 33 |
|
|
| 29 | 34 |
|
| 30 | 35 |
|
| 31 |
|
|
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
| 36 |
|
|
| 37 |
|
|
| 38 |
|
|
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 36 |
|
|
| 37 |
|
|
| 42 | 38 |
|
| 43 | 39 |
|
| 44 | 40 |
|
lib/openagents/capacity/estimate.ex modified +12 -14
@@ -7,7 +7,8 @@ defmodule OpenAgents.Capacity.Estimate do
| 7 | 7 |
|
| 8 | 8 |
|
| 9 | 9 |
|
| 10 |
|
|
| 10 |
|
|
| 11 |
|
|
| 11 | 12 |
|
| 12 | 13 |
|
| 13 | 14 |
|
@@ -20,14 +21,14 @@ defmodule OpenAgents.Capacity.Estimate do
| 20 | 21 |
|
| 21 | 22 |
|
| 22 | 23 |
|
| 23 |
|
|
| 24 |
|
|
| 24 | 25 |
|
| 25 | 26 |
|
| 26 | 27 |
|
| 27 | 28 |
|
| 28 | 29 |
|
| 29 |
|
|
| 30 |
|
|
| 30 |
|
|
| 31 |
|
|
| 31 | 32 |
|
| 32 | 33 |
|
| 33 | 34 |
|
@@ -47,18 +48,15 @@ defmodule OpenAgents.Capacity.Estimate do
| 47 | 48 |
|
| 48 | 49 |
|
| 49 | 50 |
|
| 50 |
|
|
| 51 |
|
|
| 51 | 52 |
|
| 52 |
|
|
| 53 |
|
|
| 54 |
|
|
| 55 |
|
|
| 56 |
|
|
| 57 |
|
|
| 58 |
|
|
| 59 |
|
|
| 53 |
|
|
| 54 |
|
|
| 55 |
|
|
| 56 |
|
|
| 57 |
|
|
| 60 | 58 |
|
| 61 | 59 |
|
| 62 | 60 |
|
| 63 |
|
|
| 61 |
|
|
| 64 | 62 |
|
lib/openagents/capacity/evidence.ex modified -3
test/openagents/capacity_test.exs modified +52 -1
@@ -2,6 +2,7 @@ defmodule OpenAgents.CapacityTest do
| 2 | 2 |
|
| 3 | 3 |
|
| 4 | 4 |
|
| 5 |
|
|
| 5 | 6 |
|
| 6 | 7 |
|
| 7 | 8 |
|
@@ -89,7 +90,8 @@ defmodule OpenAgents.CapacityTest do
| 89 | 90 |
|
| 90 | 91 |
|
| 91 | 92 |
|
| 92 |
|
|
| 93 |
|
|
| 94 |
|
|
| 93 | 95 |
|
| 94 | 96 |
|
| 95 | 97 |
|
@@ -124,10 +126,16 @@ defmodule OpenAgents.CapacityTest do
| 124 | 126 |
|
| 125 | 127 |
|
| 126 | 128 |
|
| 129 |
|
|
| 127 | 130 |
|
| 128 | 131 |
|
| 129 | 132 |
|
| 130 | 133 |
|
| 134 |
|
|
| 135 |
|
|
| 136 |
|
|
| 137 |
|
|
| 138 |
|
|
| 131 | 139 |
|
| 132 | 140 |
|
| 133 | 141 |
|
@@ -143,6 +151,48 @@ defmodule OpenAgents.CapacityTest do
| 143 | 151 |
|
| 144 | 152 |
|
| 145 | 153 |
|
| 154 |
|
|
| 155 |
|
|
| 156 |
|
|
| 157 |
|
|
| 158 |
|
|
| 159 |
|
|
| 160 |
|
|
| 161 |
|
|
| 162 |
|
|
| 163 |
|
|
| 164 |
|
|
| 165 |
|
|
| 166 |
|
|
| 167 |
|
|
| 168 |
|
|
| 169 |
|
|
| 170 |
|
|
| 171 |
|
|
| 172 |
|
|
| 173 |
|
|
| 174 |
|
|
| 175 |
|
|
| 176 |
|
|
| 177 |
|
|
| 178 |
|
|
| 179 |
|
|
| 180 |
|
|
| 181 |
|
|
| 182 |
|
|
| 183 |
|
|
| 184 |
|
|
| 185 |
|
|
| 186 |
|
|
| 187 |
|
|
| 188 |
|
|
| 189 |
|
|
| 190 |
|
|
| 191 |
|
|
| 192 |
|
|
| 193 |
|
|
| 194 |
|
|
| 195 |
|
|
| 146 | 196 |
|
| 147 | 197 |
|
| 148 | 198 |
|
@@ -295,5 +345,6 @@ defmodule OpenAgents.CapacityTest do
| 295 | 345 |
|
| 296 | 346 |
|
| 297 | 347 |
|
| 348 |
|
|
| 298 | 349 |
|
| 299 | 350 |
|