Uh oh!
There was an error while loading. Please reload this page.
docs(api): translate safari zh envelope descriptions (daily audit 2026-08-27) - #316
Merged
Conversation
Uh oh!
There was an error while loading. Please reload this page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Daily API audit 2026-08-27 (scope: all, audit-only)
本轮按确定性审计流程执行(知识包缺少 api-review-apply-patches.py / api-review-daily.md,生成管线被阻塞,沿用 08-24 起建立的审计流程;审计方法见记忆程序)。
审计结果(registry vs 基线,均以
git show HEAD:<path>读取)openapi.en/zh.jsonvs split:0 driftdocs.jsonpages allow-list:5 模块 × 2 语言 missing=0 / extra=0(无需 reconcile;无操作增删,docs.json 未改动){en,zh}/openapi/api-catalog.mdx:均 338 行,模块计数与 spec 逐一吻合(未改动)scripts/lint_openapi.py:OK: 12 spec files, no violations/rum/issue/export为 text/csv、/safari/session/export为 application/x-ndjson、/safari/skill/upload为 multipart/form-data,均非 JSON 通道,不适用 JSON example 要求)本次修复(唯一 drift)
safari zh 双语契约漂移:
safari.openapi.zh.json中ResponseEnvelope.request_id/ResponseEnvelope.data的 description 为英文句子(其余模块 zh 文件均为中文/空),违反 bilingual contract。已译为中文,并同步 consolidatedopenapi.zh.json保持一致。观察项(未改动,记录备查)
path_prefixes:/monit/query/*、/monit/servicemap/*、/monit/targets、/monit/tools/*(11 条)、/route/*(3 条)、/rum/data/*、/rum/field/*、/rum/resource/*(3 条)。这些路径已在 spec 中(registry==spec 零漂移),但下次全量生成时若无 mapping 覆盖会被当作 unresolved 丢弃,建议后续补 mapping 前缀。验证
python3 scripts/lint_openapi.py→ OK