Commit c7836c7
committed
docs(rest): the batch cap is embedder policy, not deployment policy
`enforceBatchSize`'s docblock called `RestServerConfig.batch.maxBatchSize`
"deployment policy". That is false of every shipped boot path: a
`RestServerConfig` is the argument a host passes at construction, there is
exactly one door (`createRestApiPlugin({ api })`, whose `start()` is the only
non-test site reaching `new RestServer(...)`), and neither shipped boot path
opens it with a `batch` config — `os serve` forwards two `api.*` keys and the
dev plugin passes none. A CLI-started deployment always gets the 200 default
and cannot move it.
Narrow the prose onto that fact using the vocabulary already landed on the
spec side: `Reachability: EMBEDDER-ONLY`, matching the
`BatchEndpointsConfigSchema` docblock, the WHO CAN WRITE THIS CONFIG header in
`packages/spec/src/api/rest-server.zod.ts` and the per-key REACHABILITY row in
`packages/spec/liveness/batch_endpoints.json`. Two wordings for one fact in two
packages is how this defect survived the spec-side fix.
No behaviour change: the 1..1000 range and the 200 default are correct and
still enforced.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015QE8qk46e5CHJxyQEUjbf81 parent 70f7d6d commit c7836c7
1 file changed
Lines changed: 29 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2061 | 2061 | | |
2062 | 2062 | | |
2063 | 2063 | | |
2064 | | - | |
| 2064 | + | |
2065 | 2065 | | |
2066 | 2066 | | |
2067 | 2067 | | |
| |||
2076 | 2076 | | |
2077 | 2077 | | |
2078 | 2078 | | |
2079 | | - | |
2080 | | - | |
2081 | | - | |
2082 | | - | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
| 2086 | + | |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
2083 | 2107 | | |
2084 | 2108 | | |
2085 | 2109 | | |
| |||
0 commit comments