Architectural decision log
decisions_logRecord, list, and search architectural decisions. Store decisions with title, body, category, importance; supersede old ones. List recent decisions or search via full-text query. Helps AI agents retain project context across sessions.
Instructions
Multi-action ADR log. Pick one via action: • store — record a new decision (title + body required; supersedes_id optional). Writes a row. • list — list recent decisions (read-only). • search — FTS over decisions (query required, read-only). Decisions outrank free-form memories by default and survive pruning longer. Use pitfalls_log for recurring problems.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Which sub-operation to perform: `store`, `list`, or `search`. | |
| project_path | Yes | Absolute project path the decision belongs to (or to scope `list`/`search`). Required. | |
| title | No | Decision title (required for `store`, ignored otherwise). One short line — e.g. `"Use Postgres over MySQL"`. | |
| body | No | Decision body in markdown (required for `store`). Should explain context, options considered, and rationale. | |
| category | No | Free-form category tag for filtering, e.g. `architecture`, `infra`, `process`. Default `general`. | general |
| importance | No | Importance score in [0, 1] for `store`. Default 0.7 — decisions outrank typical facts (0.5). | |
| supersedes_id | No | For `store`: optional id of an earlier decision this one replaces. The older decision is marked superseded. | |
| query | No | Search text (required for `action="search"`). Tokenised by FTS5. | |
| limit | No | Maximum rows to return for `list`/`search` (1-50). Default 10. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | For `store`: `Decision stored with ID: <id>`. For `list`/`search`: markdown bullet list of decisions or `No decisions found.` Returns `Invalid action: ...` when `action` is unsupported. |