lbb_observe
Store conversation turns verbatim and extract structured facts onto an isolated observe branch; anchor known triplets and flag low-confidence ones for review, with auto-merge on clean validation.
Instructions
Remember a conversation: store the turns verbatim as an EPISODE evidence entity, then anchor + gate the supplied facts on an observe branch (LLM extraction cannot poison the main graph). Facts with both endpoints already in the graph are anchored; unanchored facts need confidence >= 0.8 to mint new entities, else they come back needs_review. auto_merge merges the branch onto the scoped branch when SHACL validation is clean (the validate-then-merge). Server flag-gated (--enable-observe). This build takes caller-extracted facts (each with a structured triplet); bare statements come back needs_review.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| facts | No | Caller-extracted candidate facts; omit with extract:false to store the episode only | |
| graph | No | Graph to target; defaults to the connection's graph | |
| turns | Yes | The conversation slice to remember (stored verbatim) | |
| branch | No | Branch to target; defaults to the connection's branch | |
| source | No | Source label, e.g. support-bot | |
| extract | No | false = store the episode only (default true) | |
| auto_merge | No | Merge onto the scoped branch when validation is clean | |
| session_id | Yes | Caller's conversation id (drives the default observe branch name) | |
| observe_branch | No | Branch for the facts (default observe-<hash12(session_id)>) |