Learn a writing rule from authenticated human feedback
POST /v1/reviews/{id}/learned-rules
The composing agent may learn organization house rules or project/category rules from an authenticated human turn on its own review. Every authorized human reviewer may teach organization style. This does not change sending authority. The rule, provenance, audit, retry receipt, and pending-draft propagation are durable. Reuse client_id for retries. Read fresh rules, revise the same review, and wait again.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Request Body required
Section titled “Request Body required ”object
Required only for category target
Existing rule in the same ownership layer and scope
Responses
Section titled “ Responses ”Active learned rule and its source
object
A learned writing rule (rule_…) in the Review Loop (D2/D11). House-style/ general (scope=‘general’, applies across all categories) or category-scoped. Append-only by supersession: an edit is a new rev (same lineage_id) with the prior flipped to superseded. Read by the agent at compose/redraft time via the ordered get_rules ladder; we never apply it. Opaque ids only (D10).
object
Opaque rule id (rule_…).
Ownership layer (org/project model). org = house-style inherited by every project in the org; project = layered on top (the agent-plane default). Hard organization house rules remain mandatory across narrower scopes; the remaining rules follow the ordered precedence ladder.
The org this rule belongs to.
The project this rule belongs to; empty for an org-layer rule.
Stable lineage handle across versions (rln_…).
General = house-style (D2).
Set iff scope=category (cat_…).
Set for a per-agent override; empty = all org agents.
Hard = non-overridable.
The prior rev this row superseded (rule_…).
Review containing the source feedback.
Immutable source feedback turn.
Source is not authenticated human feedback or the caller lacks scope
Review or feedback turn is outside the composing agent’s access
Retry identity changed or the superseded rule changed concurrently