KITAQ SERIES • 参考版
SARAKURA
诊断、比较与复测
从第一行代码,到运行、观察和复测。
源码快照:2026 年 9 月 14 日 · 简体中文版:2026 年 9 月 14 日
源码快照:2026 年 9 月 14 日 · 简体中文版:2026 年 9 月 14 日
命令语法参考
下方帮助取自本源码版本,可查询可选参数、默认值和允许值。请将示例输入文件名换成自己的文件。实际工具响应保留原文。
sarakura
help
SARAKURA diagnostic translation CLI
Usage: sarakura.exe <COMMAND>
Commands:
gb
fc
validate
compare
catalog
inspect-events
inspect-metadata
retest-plan
emitter-check
normalize-events
ci-summary
coverage
pack-plan
repair-plan
automation-plan
baseline-delta
schema
inspect-repro
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print versionsarakura gb
help
Usage: sarakura.exe gb <COMMAND>
Commands:
analyze
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print helpsarakura gb analyze — 收集 Game Boy 诊断
powershell
sarakura gb analyze --metadata out/build.json --events out/events.jsonl --out out/report --fail-on errorhelp
Usage: sarakura.exe gb analyze [OPTIONS] --metadata <METADATA> --events <EVENTS> --out <OUT>
Options:
--metadata <METADATA>
--events <EVENTS>
--out <OUT>
--frames <FRAMES>
[default: 300]
--diagnostic-summary-limit <DIAGNOSTIC_SUMMARY_LIMIT>
[default: 200]
--diagnostic-rule <DIAGNOSTIC_RULES>
Analyze only this event_type or catalog ID. Can be repeated
--phase <PHASE>
Analyze only this phase, for example MVP-1. Can be repeated
--diagnostic-pack <DIAGNOSTIC_PACKS>
Analyze only this diagnostic pack/domain, for example core, ppu, audio, mapper, fds. Can be repeated
--min-severity <MIN_SEVERITY>
Keep only diagnostics at or above this severity [possible values: error, warn, info]
--fail-on <FAIL_ON>
Return a non-zero exit code if diagnostics at or above this severity remain [default: never] [possible values: never, error, warn, info]
--no-report
Do not emit report.html
--no-repro-bundle
Do not emit repro_bundle.zip
--allow-project-labels
Preserve project build labels, paths, and source identifiers in output
-h, --help
Print helpsarakura fc
help
Usage: sarakura.exe fc <COMMAND>
Commands:
analyze
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print helpsarakura fc analyze — 收集 FC 诊断
powershell
sarakura fc analyze --metadata out/build.json --events out/events.jsonl --out out/report --fail-on errorhelp
Usage: sarakura.exe fc analyze [OPTIONS] --metadata <METADATA> --events <EVENTS> --out <OUT>
Options:
--metadata <METADATA>
--events <EVENTS>
--out <OUT>
--frames <FRAMES>
[default: 300]
--diagnostic-summary-limit <DIAGNOSTIC_SUMMARY_LIMIT>
[default: 200]
--diagnostic-rule <DIAGNOSTIC_RULES>
Analyze only this event_type or catalog ID. Can be repeated
--phase <PHASE>
Analyze only this phase, for example MVP-1. Can be repeated
--diagnostic-pack <DIAGNOSTIC_PACKS>
Analyze only this diagnostic pack/domain, for example core, ppu, audio, mapper, fds. Can be repeated
--min-severity <MIN_SEVERITY>
Keep only diagnostics at or above this severity [possible values: error, warn, info]
--fail-on <FAIL_ON>
Return a non-zero exit code if diagnostics at or above this severity remain [default: never] [possible values: never, error, warn, info]
--no-report
Do not emit report.html
--no-repro-bundle
Do not emit repro_bundle.zip
--allow-project-labels
Preserve project build labels, paths, and source identifiers in output
-h, --help
Print helpsarakura validate — 验证诊断格式
powershell
sarakura validate out/report/ai_diagnostics.json --stricthelp
Usage: sarakura.exe validate [OPTIONS] <PATH>
Arguments:
<PATH>
Options:
--strict
-h, --help Print helpsarakura compare — 比较两组诊断结果
powershell
sarakura compare --before out/before --after out/after --out out/comparisonhelp
Usage: sarakura.exe compare --before <BEFORE> --after <AFTER> --out <OUT>
Options:
--before <BEFORE> Directory containing ai_diagnostics.json, or an ai_diagnostics.json file
--after <AFTER> Directory containing ai_diagnostics.json, or an ai_diagnostics.json file
--out <OUT>
-h, --help Print helpsarakura catalog — 列出诊断规则
powershell
sarakura catalog gb --jsonhelp
Usage: sarakura.exe catalog [OPTIONS] <PLATFORM>
Arguments:
<PLATFORM> [possible values: gb, fc]
Options:
--json Emit JSON instead of a Markdown table
-h, --help Print helpsarakura inspect-events — 汇总事件
powershell
sarakura inspect-events --events out/events.jsonlhelp
Usage: sarakura.exe inspect-events [OPTIONS] --events <EVENTS>
Options:
--events <EVENTS>
--out <OUT> Optional path to write the JSON inspection summary
--json Emit JSON to stdout instead of a compact text summary
-h, --help Print helpsarakura inspect-metadata — 检查构建信息
powershell
sarakura inspect-metadata --metadata out/build.jsonhelp
Usage: sarakura.exe inspect-metadata [OPTIONS] --metadata <METADATA>
Options:
--metadata <METADATA>
--out <OUT> Optional path to write the JSON inspection summary
--json Emit JSON to stdout instead of a compact text summary
-h, --help Print helpsarakura retest-plan — 生成复测计划
powershell
sarakura retest-plan --diagnostics out/report --out out/retest.jsonhelp
Usage: sarakura.exe retest-plan [OPTIONS] --diagnostics <DIAGNOSTICS>
Options:
--diagnostics <DIAGNOSTICS> Directory containing ai_diagnostics.json, or an ai_diagnostics.json file
--out <OUT> Optional path to write retest_plan.json. If omitted, JSON is printed to stdout
-h, --help Print helpsarakura emitter-check — 检查事件生成端契约
powershell
sarakura emitter-check gb --metadata out/build.json --events out/events.jsonl --stricthelp
Usage: sarakura.exe emitter-check [OPTIONS] --events <EVENTS> <PLATFORM>
Arguments:
<PLATFORM> [possible values: gb, fc]
Options:
--metadata <METADATA>
--events <EVENTS>
--strict Fail when compatibility warnings are found
--check-snapshot-refs Check that snapshot_ref paths exist
--check-trace-window-refs Check that trace_window_ref paths exist
--base-dir <BASE_DIR> Base directory for snapshot_ref and trace_window_ref existence checks
--out <OUT> Optional path to write the compatibility summary JSON
-h, --help Print helpsarakura normalize-events — 规范化事件格式
powershell
sarakura normalize-events --events out/events.jsonl --out out/normalized.jsonlhelp
Usage: sarakura.exe normalize-events [OPTIONS] --events <EVENTS> --out <OUT>
Options:
--events <EVENTS>
--out <OUT>
--json-array Also write a pretty JSON array next to the JSONL output for fixture review
-h, --help Print helpsarakura ci-summary — 判断 CI 失败条件
powershell
sarakura ci-summary --diagnostics out/report --fail-on error --enforcehelp
Usage: sarakura.exe ci-summary [OPTIONS] --diagnostics <DIAGNOSTICS>
Options:
--diagnostics <DIAGNOSTICS> Directory containing ai_diagnostics.json, or an ai_diagnostics.json file
--fail-on <FAIL_ON> CI policy. `error` fails only on errors, `warn` fails on errors or warnings [default: error] [possible values: never, error, warn, info]
--out <OUT> Optional path to write sarakura_ci_summary.json
--enforce Return a non-zero exit code when the CI policy fails
-h, --help Print helpsarakura coverage — 列出已观察规则
powershell
sarakura coverage gb --events out/events.jsonl --out out/coverage.jsonhelp
Usage: sarakura.exe coverage [OPTIONS] --events <EVENTS> <PLATFORM>
Arguments:
<PLATFORM> [possible values: gb, fc]
Options:
--events <EVENTS>
--out <OUT> Optional path to write catalog coverage JSON. If a directory is given, diagnostic_coverage.json is created inside it
--json Emit JSON to stdout instead of a compact text summary
-h, --help Print helpsarakura pack-plan — 按领域查看规则计划
powershell
sarakura pack-plan gbhelp
Usage: sarakura.exe pack-plan [OPTIONS] <PLATFORM>
Arguments:
<PLATFORM> [possible values: gb, fc]
Options:
--out <OUT> Optional path to write pack plan JSON. If a directory is given, diagnostic_pack_plan.json is created inside it
--json Emit JSON to stdout instead of a Markdown summary
-h, --help Print helpsarakura repair-plan — 生成修复计划
powershell
sarakura repair-plan --diagnostics out/report --out out/repair.json --markdown out/repair.mdhelp
Usage: sarakura.exe repair-plan [OPTIONS] --diagnostics <DIAGNOSTICS>
Options:
--diagnostics <DIAGNOSTICS> Directory containing ai_diagnostics.json, or an ai_diagnostics.json file
--out <OUT> Optional path to write repair_plan.json. If omitted, JSON is printed to stdout
--markdown <MARKDOWN> Optional path to write repair_plan.md. If a directory is given, repair_plan.md is created inside it
-h, --help Print helpsarakura automation-plan — 将计划与工具能力对应
powershell
sarakura automation-plan --diagnostics out/report --tool kokura --out out/automation.jsonhelp
Usage: sarakura.exe automation-plan [OPTIONS] --diagnostics <DIAGNOSTICS>
Options:
--diagnostics <DIAGNOSTICS> Directory containing ai_diagnostics.json, or an ai_diagnostics.json file
--tool <TOOL> Tool name for generated commands. Use auto, kokura, or kurosaki [default: auto]
--out <OUT> Optional path to write automation_plan.json. If omitted, JSON is printed to stdout
--markdown <MARKDOWN> Optional path to write automation_plan.md. If a directory is given, automation_plan.md is created inside it
--capabilities <CAPABILITIES> Optional SARAKURA tool capability JSON. Unsupported options are omitted from generated commands
-h, --help Print helpsarakura baseline-delta — 测量相对基准的改善与退化
powershell
sarakura baseline-delta --baseline out/before --current out/after --out out/delta --markdown out/deltahelp
Usage: sarakura.exe baseline-delta [OPTIONS] --baseline <BASELINE> --current <CURRENT>
Options:
--baseline <BASELINE>
Baseline directory containing ai_diagnostics.json, or an ai_diagnostics.json file
--current <CURRENT>
Current directory containing ai_diagnostics.json, or an ai_diagnostics.json file
--out <OUT>
Optional path to write baseline_delta.json. If omitted, JSON is printed to stdout
--markdown <MARKDOWN>
Optional path to write baseline_delta.md. If a directory is given, baseline_delta.md is created inside it
--fail-on-new <FAIL_ON_NEW>
Fail when new diagnostics at or above this severity are introduced [default: error] [possible values: never, error, warn, info]
--fail-on-regression <FAIL_ON_REGRESSION>
Fail when existing diagnostics regress at or above this severity [default: error] [possible values: never, error, warn, info]
--enforce
Return a non-zero exit code when the baseline policy fails
-h, --help
Print helpsarakura schema
help
Usage: sarakura.exe schema <COMMAND>
Commands:
export
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print helpsarakura schema export — 导出 JSON 模式
powershell
sarakura schema export --out out/schemashelp
Usage: sarakura.exe schema export [OPTIONS] --out <OUT>
Options:
--out <OUT>
--manifest <MANIFEST>
-h, --help Print helpsarakura inspect-repro — 检查复现资料包
powershell
sarakura inspect-repro out/report/repro_bundle.zip --jsonhelp
Usage: sarakura.exe inspect-repro [OPTIONS] <BUNDLE>
Arguments:
<BUNDLE>
Options:
--out <OUT>
--json
-h, --help Print help