Commit 6542970
committed
docs(consent), test(bounded-body): state the guard's real limit, pin the shape
Two round-3 audit findings, one accepted as a documentation fix and one as a
test-instrument fix.
A local process running as the user can mint its own GUI session — the dashboard
bootstrap is served to any loopback GET — and can equally run `gh api -X PUT
/user/starred/...` without involving the proxy at all. No check inside this
process distinguishes that caller from the browser, because both hold every local
credential. Claiming the endpoint is a technical barrier would be false, so the
route comment and AGENTS.md now say what it actually does: it removes the casual
path and the raw-token path, and the real boundary is the normative rule that an
agent must not spend the user's identity by any mechanism. The unconditional
session requirement stays; it is just no longer described as more than it is.
The bounded-body growth counter caught an exact-fit reallocation mutation but not
the per-chunk `Uint8Array[]` it replaced, because that implementation never
increments the counter at all. The retained-object shape is now pinned
structurally — no per-chunk collection, one geometric buffer — the same
instrument this repository already uses for the relay retention rule. Driven red
by restoring the array accumulator.1 parent cec481c commit 6542970
3 files changed
Lines changed: 43 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
133 | 143 | | |
134 | 144 | | |
135 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
50 | 60 | | |
51 | 61 | | |
52 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
173 | 172 | | |
174 | 173 | | |
175 | 174 | | |
| |||
189 | 188 | | |
190 | 189 | | |
191 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
192 | 210 | | |
193 | 211 | | |
194 | 212 | | |
| |||
0 commit comments