Run a gap analysis
gap_analysisCompare baseline and target elements in a matrix, identify new/eliminated/modified/replaced gaps, and return recommended actions with work-package JSON. Eliminations stay visible for cost reduction.
Instructions
現行(baseline)と目標(target)の構成要素を突き合わせ、マトリクスで対応関係を可視化し、新規に必要なもの・廃止されるもの・改修/置換されるものをギャップとして洗い出して、それぞれの推奨アクションと解釈を返す。廃止側も必ず出すため、コスト削減の根拠が消えない。検出したギャップは add_work_package にそのまま渡せる JSON として出力し、save=true で分析の要約を案件のメモに残せる。sources 引数で要素ごとの出典を渡すと、ギャップ一覧に出典列が出る(渡さなかった要素は空欄ではなく「出所未記入」と表示する)。 / Compare baseline and target elements, render the mapping as a matrix, and derive the gaps: what must be newly created, what gets eliminated, and what is modified or replaced, each with a recommended action. Eliminations are always reported so the cost-reduction case stays visible. The gaps are also emitted as ready-to-paste add_work_package JSON, and save=true appends a summary of the analysis to the engagement notes. Pass per-element provenance in sources to get a source column on the gap table; elements without one are marked "no source" rather than left blank.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | 出力言語 / Output language | both |
| save | No | 分析の要約を案件のメモに 1 行記録する(既定 false)。作業パッケージは登録しない / Append a one-line summary of this analysis to the engagement notes (default false). Work packages are not created | |
| domain | No | 対象ドメイン(business / data / application / technology など) / Architecture domain — 最大 300 文字 at most 300 characters | |
| target | Yes | 目標の構成要素 / Target elements | |
| sources | No | 要素ごとの出典。ギャップ一覧に出典列が出る。渡さなかった要素は「出所未記入」と表示される(空欄にはしない) / Per-element provenance. Adds a source column to the gap table; elements you omit are shown as "no source" rather than left blank | |
| baseline | Yes | 現行の構成要素(能力・システム・データ・技術など) / Baseline elements: capabilities, systems, data, technologies | |
| mappings | No | 現行と目標の対応関係。省略した現行要素は、同名の目標があれば維持、無ければ廃止として扱う / Mapping between baseline and target. Unmapped baseline elements are retained when a same-named target exists, otherwise eliminated |