{
  "$schema": "../../schemas/service.schema.json",
  "kind": "service",
  "name": "mom",
  "version": "1.0.0-draft.1",
  "purpose": "Messaging capability acquired through a declared System Service.",
  "declarationSchema": "../../../../Service.schema.json",
  "types": "types.json",
  "functions": {
    "newChannel": {
      "parameters": [],
      "returns": "mom.Channel",
      "purpose": "Channel owned by the current scope.",
      "statementOnly": false
    }
  },
  "rules": [
    "newChannel acquires an execution-owned channel. publish takes a subject, payload and optional properties and waits for broker acknowledgment.",
    "Payload byte conversion is the same as other byte-valued Service arguments. Publication acknowledgment does not mean consumer Processes completed.",
    "Events define payload shape and consumer mappings. Code does not install listeners. Delivery may repeat; database writes and publication are not automatically atomic."
  ]
}
