approve_proposal
Approve a pending proposal to write rule/lesson content or update an existing block in both the scope's Markdown file and SQLite database.
Instructions
Approve a pending proposal. For type='rule'/'lesson' this assigns a new RN-/LL- code, appends the atomic block to the scope's .md file, and inserts the corresponding row; for type='update' it splices the target's existing block in place instead. This is the single choke point that writes proposal content into both the .md file and SQLite together.
Access level: write. Returns: JSON with the resulting code, scope_id, and file location (file_path/file_offset/byte_length).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| proposal_id | Yes | The pending_proposals id to approve. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |