quipu_accept_proposal
Accept a pending schema proposal by validating Turtle shapes, running migrations atomically, and using dry-run and risk checks to preview or block changes.
Instructions
Accept a pending schema proposal. For shape proposals, validates the Turtle before writing to the shapes table. A proposal carrying a migration runs it in the same transaction; a refused migration leaves the proposal pending and nothing written. With dry_run=true nothing is accepted: the report lists existing facts the new shapes would refuse, what the migration would change, and whether acceptance would go through. Before accepting, a blast-radius plan is computed and returned as 'plan'; a plan whose risk score exceeds risk_threshold, or that cannot be determined, is refused unless accept_risk=true with a risk_reason (recorded in the decision note).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Proposal ID to accept | |
| note | No | Optional acceptance note | |
| limit | No | Dry run: maximum sample facts and violations per list (default 50, max 1000) | |
| dry_run | No | Report what acceptance would do without accepting (default false) | |
| timestamp | No | ISO-8601 timestamp | |
| decided_by | Yes | Identity of the approver (required; there is no default) | |
| accept_risk | No | Accept a failing or undetermined plan anyway; requires risk_reason | |
| risk_reason | No | Why the risk is accepted; recorded in the decision note | |
| risk_threshold | No | Refuse when the plan's risk score is above this (0-100; default 40 or QUIPU_PROPOSAL_RISK_THRESHOLD) |