ledger_log_action
Log a single autonomous action taken during a self-directed dev loop, tagging it with an impact tier, category, and description to maintain an audit ledger.
Instructions
Record a single autonomous action taken during a self-directed dev loop.
Use this to log any action the agent takes on its own initiative, tagged with a tier indicating how consequential it was.
Args: tier (int): Impact tier. Must be 0 (routine/info), 1 (notable), or 2 (high-impact, e.g. irreversible or user-facing). category (str): Short category label, e.g. "refactor", "deploy", "file_write", "dependency_change". Must be non-empty. description (str): Human-readable description of what was done. Must be non-empty. project (Optional[str]): Project/repo name this action belongs to.
Returns: dict: {"id": int} — the new action's row id.
Errors: Raises ValueError if tier is not in {0,1,2} or category/description are empty, with a message explaining the valid values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | Yes | ||
| project | No | ||
| category | Yes | ||
| description | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||