   (right-activate [node join-bindings elements memory transport])
   (right-retract [node join-bindings elements memory transport]))
 
-;; Right 
+;; Specialized right activation interface for accumulator nodes,
+;; where the caller has the option of pre-reducing items
+;; to reduce the data sent to the node. This would be useful
+;; if the caller is not in the same memory space as the accumulator node itself.
 (defprotocol IAccumRightActivate
   ;; Pre-reduces elements, returning a map of bindings to reduced elements.
   (pre-reduce [node elements])

                             (= \? (first (name item))))] 
              (keyword  item))))

(defrecord AccumulatorDef [initial-value reduce-fn combine-fn convert-return-fn])

(defn- construct-condition [condition result-binding]


  (description [node] (str "QueryNode -- " param-keys)))

;; Record representing alpha nodes in the Rete network,
;; each of which evaluates a single condition and
;; propagates matches to its children.
(defrecord AlphaNode [condition children activation]
  IAlphaActivate
  (alpha-activate [node facts memory transport]
