GET /oneaster/v1/admin/request-diagnostics/{request_id}
管理员按请求 ID 只读诊断
需要原生管理员角色;PAT 另需 log:read。可选精确原生 username,最多 64 UTF-8 字节,允许中文和内部空格,禁止首尾空白、控制字符、无效 Unicode、凭据前缀及 %。 request_id 为 1–64 位字母、数字、下划线或连字符,拒绝 sk-、oak_、nap_ 前缀、通配符、重复或额外参数。成功为 {data:...};一次最多读取 100 条日志。routing_available=false 时 routing=[],缺失路由不代表未调用上游,routing_truncated 表示超过 100 条。只输出安全元数据和结构化错误;parameter_constraint 仅解析指定 token 参数最低整数值的特定错误。billing.observed_net_charge 是消费减退款的可观察日志净额,quota 是整数字符串、credits 为四位字符串,无财务证据或聚合未知为 null;本人截断时 aggregate_complete=false。负财务额度使聚合未知;缺失必填额度、越界或损坏结构返回 502。billing.finalized 始终为 false,不是结算凭证或钱包余额,应查看任务诊断详情。无可见记录返回 404 request_diagnostic_not_found;多个可见账号共享 ID 或管理员读取截断返回 409 request_diagnostic_ambiguous,精确用户名筛选后仍截断亦如此。 | English: Native administrator role; PAT requires log:read. Optional exact native username is limited to 64 UTF-8 bytes; Unicode and internal spaces are permitted, but edge whitespace, controls, invalid Unicode, credential prefixes and % are rejected. Request IDs contain 1–64 letters, digits, underscores or hyphens; credential prefixes, wildcards, duplicate and additional parameters are rejected. A single read returns at most 100 logs. Missing routing does not prove no upstream call; routing_truncated indicates truncation. The observed net charge is consume minus refund, with integer-string quota and four-decimal-string credits; no financial evidence or incomplete aggregation is null. Self truncation means aggregate_complete=false. Negative financial quota makes the amount unknown; missing quota, overflow or malformed evidence returns 502. billing.finalized is always false; inspect task diagnostics for settlement. No visible records returns 404 request_diagnostic_not_found; multiple owners or a truncated administrator read returns 409 request_diagnostic_ambiguous, including when filtered by an exact historical username.