docs(routing): record route resolve remote verification
This commit is contained in:
@@ -252,6 +252,52 @@
|
||||
- `GET /api/routing/sticky/route-failures` 回读到同一条故障计数,返回 `backend=redis`
|
||||
- `POST /api/routing/sticky/cooldowns` 创建 `route_id=route-p1t4-redis-1780012047`,返回 `reason=cooldown-active`、`backend=redis`
|
||||
- `GET /api/routing/sticky/cooldowns` 回读到同一条 cooldown,返回 `backend=redis`
|
||||
- 2026-05-29 已完成基础设施闭环补充 / `route resolve + sticky hit`
|
||||
- 提交:`66ad319c feat(routing): add sticky-backed route resolver`
|
||||
- 新增管理 API:
|
||||
- `POST /api/routing/resolve`
|
||||
- 行为收口:
|
||||
- 首次 resolve 按 `logical_group_routes.priority` 选择可用 route
|
||||
- 选择结果会同步写入 sticky store
|
||||
- 同步写入 `route_decision_logs` 与 `route_sticky_audit`
|
||||
- 后续同 `scope + logical_group_id + public_model + subject_id` 请求会优先命中 sticky
|
||||
- 本地门禁已通过:
|
||||
- `gofmt -l .`
|
||||
- `go vet ./...`
|
||||
- `go test -cover ./internal/...`
|
||||
- `go test ./tests/integration/... -count=1`
|
||||
- remote43 已原位升级到 `repo HEAD = 66ad319`
|
||||
- `http://127.0.0.1:18173/healthz` 返回 `ok`
|
||||
- 远端实例二进制校验:
|
||||
- 活跃实例目录:`/home/ubuntu/sub2api-kimi-patched-auto2-20260525_18169`
|
||||
- 本地构建与远端实例二进制 `sha256` 已对齐为 `f7b8334cd992e0a3e65d3f129163f0a01f06a1c746071b67f6e8d1f6fe38ad99`
|
||||
- 修正了一次“按绝对路径 `pkill` 未命中 `./sub2api-cn-relay-manager-server`”导致旧进程仍在跑的问题,之后已定向 kill 活跃 PID 并重启
|
||||
- remote43 真实公网 API 验证已通过(`redis` 运行时):
|
||||
- 创建临时逻辑分组 `logical_group_id=p1t5-gpt-shared-1780019458`
|
||||
- 创建两条 route:
|
||||
- `asxs-1780019458`,`priority=20`
|
||||
- `codex2api-1780019458`,`priority=10`
|
||||
- 第一次 `POST /api/routing/resolve`:
|
||||
- `request_id=req-p1t5-first-1780019458`
|
||||
- `subject_id=conv-p1t5-1780019458`
|
||||
- 返回 `backend=redis`
|
||||
- 返回 `route_id=codex2api-1780019458`
|
||||
- 返回 `sticky_hit=false`
|
||||
- 返回 `sticky_action=bind`
|
||||
- 第二次 `POST /api/routing/resolve`(同 subject):
|
||||
- `request_id=req-p1t5-second-1780019458`
|
||||
- 返回 `backend=redis`
|
||||
- 返回 `route_id=codex2api-1780019458`
|
||||
- 返回 `sticky_hit=true`
|
||||
- 返回 `sticky_action=hit`
|
||||
- `GET /api/routing/logs/decisions?sticky_key=lg:p1t5-gpt-shared-1780019458:m:gpt-5.4:conv:conv-p1t5-1780019458`
|
||||
- 回读到两条 decision log
|
||||
- 最新一条 `request_id=req-p1t5-second-1780019458`,`sticky_hit=true`
|
||||
- 较早一条 `request_id=req-p1t5-first-1780019458`,`sticky_hit=false`
|
||||
- `GET /api/routing/logs/sticky-audit?sticky_key=lg:p1t5-gpt-shared-1780019458:m:gpt-5.4:conv:conv-p1t5-1780019458`
|
||||
- 回读到两条 sticky audit
|
||||
- 最新一条 `action=hit`
|
||||
- 较早一条 `action=bind`
|
||||
- 2026-05-26 已把“最终用户 -> 公网域名 -> OpenClaw”这一跳补进正式验证口径:
|
||||
- 公网根地址当前统一为 `https://sub.tksea.top`
|
||||
- OpenClaw 本地 `MiniMax` 运行时故障已定位为 `pi-ai/openai-node` 未继承系统 `HTTP(S)_PROXY`,不是 allowlist 或模型名大小写问题
|
||||
|
||||
Reference in New Issue
Block a user