Create Pattern Comment
patterns
Create Pattern Comment
POST /patterns//comments -> the created comment.
Author is resolved from the auth token AT POST TIME (auth.user_id) and
stored as a bare user id — the served author object is a live
lookup (_serialize_pattern_comment), never a name/email snapshot.
Audit-logged the same way LB6’s owner change is (repo.append_event,
surfaced via GET …/events), and broadcasts a REAL WS frame
(app/events.py::emit — see app/ws/stream.py’s canonical event contract)
rather than this router’s log-only _emit() stub, so the drawer can
live-append without a refetch.
POST
Create Pattern Comment