Implement marqdo-ext-http#3: the explicit @http package now owns a real
loopback domain test instead of only pure encode/parse cases.
- tests/loopback.mq.md performs two real HTTP/1.1 exchanges in one program
through the CLI's generic resource.open("tcp")/read/write/close, building
requests with http.构建请求字节 and parsing responses with
http.解析响应字节; non-ASCII bodies, explicit --allow-net 127.0.0.1 and
--allow-env HTTP_TEST_PORT only.
- scripts/loopback_server.py is a deterministic one-request-per-connection
server that records method/path/body and returns fixed status/bodies.
- scripts/run_cases.py supports kind=loopback (server lifecycle, port env,
grants, request-record assertions) without changing the pure case path.
- tests/cases/loopback.json asserts GET /one -> 200 第一个 and
POST /two -> 201 第二个 plus the request records.
- Evidence: docs/evidence-2026-11-30-loopback-domain-test.md (real CLI rc.6
candidate + Bundle 0.3.0: 2 cases PASS).
No CLI/Host/other-component change, no new Host request, no release.
验收测试
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 的真实执行结果;修改期望值等于声明公开行为变化,必须单独评审。