get_why
Explains why code is shaped this way using decision records and evidence commits, so you can check rationale before refactoring or diverging from established patterns.
Instructions
Why this code is shaped this way — decision records + evidence commits.
Call before a refactor or pattern divergence. Query: a question, a file
path, a question with ``targets``, or nothing (decision dashboard).
Falls back to git archaeology, never empty. ``authority: accepted``
means somebody signed the decision; ``answer_basis`` names the strongest
evidence lane, and only ``decision`` is a ruling.
Args:
query: question, file/module path, or omit for the dashboard.
targets: file paths to anchor the search.
id: decision or ``ev_...`` evidence id from any tool.
reference: structured evidence reference.
repo: usually omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| repo | No | ||
| query | No | ||
| targets | No | ||
| reference | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |