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