Fix marqdo-ext-http#13: `http.文本字节` allocated a fixed 8 MiB Memory region on every call, and `http.构建请求字节` called it once for the request line and once per header, so a 6-header request spent ~56 MiB of the default 64 MiB run budget and a second request failed with `resource.exhausted`. - `文本字节`: request the minimal page count for the actual text (4-byte UTF-8 worst case per codepoint, 128-page cap, 1 page minimum). - `构建请求字节`: concatenate the request line and all headers into one text, encode once, then concatenate the body; per-header fixed allocations are gone. - Public signatures and produced request bytes are unchanged (`构建请求` text API stays compatible). - Regression case: under the default budget, build the same 6-header request 8 times and assert the final byte length/request text; the old code failed on the second build. - docs/evidence records the real CLI/Bundle run. No CLI/Host change, no new Host request, no release; real loopback multi-request exchange (#3) and the optional streaming response view remain open/UNVERIFIED.
验收测试
tests/*.mq.md 是从迁移前 CLI 官方标准库自测迁入的真实测试源,导入已改为公开 Package 别名(@alias);tests/cases/*.json 固定输入(stdin、CLI 参数、环境、依赖别名)与期望结果(observation 终值、stdout)。
运行入口是 scripts/test.sh,要求显式传入 MARQDO_BIN 与 MARQDO_STDLIB_DIR。运行器为每个 case 建立临时消费者工程(dependencies.<alias>.path 指向本仓 Package 副本),先 marqdo lock 再通过公开 @alias 导入执行,不读取兄弟仓路径或浮动分支。
期望值取自迁移前基线 Bundle 的真实执行结果;修改期望值等于声明公开行为变化,必须单独评审。