Overview
This document provides a production-grade description of the Reasoning Graph in Membria: how GraphRAG, memory, DBB/DS, knowledge cache, and the LoRA lifecycle work together.1. What is Reasoning Graph in Membria
Reasoning Graph is the layer between the user (or team) and any AI models that makes intelligence cumulative rather than disposable. It solves one fundamental problem:In conventional AI, intelligence “dissolves” in chats - many conversations, little persistent structure. Reasoning Graph transforms the stream of interactions into stable, reusable memory with causal relationships, provable provenance, and governance capability.Reasoning Graph implements:
- Decision-centric temporal knowledge graph
- Budget-aware GraphRAG
- Governed learning loop
2. Core Reasoning Graph Subsystems
Reasoning Graph is implemented as a set of interconnected subsystems:| # | Subsystem | Function |
|---|---|---|
| 1 | Ingestion + Normalization | Connect sources, extract content, normalize to canonical form |
| 2 | Event / Decision Extraction (DBB) | Background agent that transforms noise (chats/docs/comments) into events, decisions, assumptions, outcomes |
| 3 | Graph Memory (Temporal / Causal) | Long-term memory as graph: people, documents, decisions, causes, effects, versions, time ranges |
| 4 | Vector Memory (Embeddings) | Semantic memory: embeddings of fragments, nodes, events, case similarity |
| 5 | Knowledge Cache (Local + Shared) | Reuse of verified answers, reasoning patterns, conclusions |
| 6 | Retrieval Orchestrator (GraphRAG Router) | Router that decides: what to retrieve (graph, vectors, cache), context volume, escalation needs |
| 7 | Model Runtime (Local-first + Council) | Fast local model handles 80-95 percent of work; complex cases escalate to Council |
| 8 | LoRA Lifecycle + Router Policy | Mechanism for accumulating expertise: new LoRA adapters emerge from recurring gaps, are validated, deployed/rolled back |
| 9 | Decision Surface (DS) | UI/signal system showing: what’s open, what’s drifting, what’s risky, what needs approval |
3. Data Objects in Reasoning Graph
3.1 Canonical Unit - Evidence
Every input data fragment is normalized to an Evidence Record:3.2 Events and Decisions
DBB produces structured objects: Event:3.3 Memory is not a chat log
Core Reasoning Graph principle: store structure, not all words:- Decisions and their context
- Causal relationships
- Fact provenance
- Changes over time
- Outcomes
4. How DBB Transforms Chaos into Memory
DBB is not a UI - it is a backend agent/process. Its task: detect decision moments and record them, like an airplane’s black box.4.1 Event ingestion and normalization
Reasoning Graph relies on a normalized event stream from external systems (email, DMS, billing, identity, etc.). This layer is responsible for:- Receiving events from external sources
- Normalizing events to unified format
- Deduplication
- Temporal ordering within single objects
- Preserving references to source systems
4.2 Irreversibility layer and Commitment Events
In Reasoning Graph, decision irreversibility is not determined by LLM and not derived from text. It is established through external Commitment Events - facts of real-world change that cannot or should not be undone without trace. Reasoning Graph fundamentally distinguishes:- Discussion
- Intent
- Decision
- Irreversible action
Commitment Event
A Commitment Event is an event that:- Has external effect (technical, financial, legal, organizational)
- Is recorded in an external system
- Serves as a point of commitment (point of no return)
- PR merged or release published
- Invoice issued
- Payment executed
- Contract signed
- Email sent to external recipient
- Access or role granted
- Policy or permissions changed
Decision Window
A decision in Reasoning Graph is not treated as a message, but as a Decision Window - a temporal window of events within which an irreversible action occurred. Decision Window includes:- pre-context: discussions, alternatives, approvals
- trigger: commitment event
- post-effects: consequences and downstream events
- actors: participants and owners
- linked systems: event sources
Role of DBB
DBB operates on top of the event logger and:- Aggregates events into Decision Windows
- Identifies presence of Commitment Events
- Assesses risk and confidence
- Forms decision candidates
- Applies policy for capture or confirmation request
Decision capture policy
Decision capture in DBB is possible only when one of these conditions is met:- A Commitment Event is present in the Decision Window
- User explicitly initiated decision capture (explicit capture)
- Preserve context
- Form candidates
- Await confirmation
Connection to immutable storage
Commitment Events and Decision Records can be:- Linked to append-only journal
- Anchored in blockchain (Membria CE / peaq)
- Signed for non-repudiation
- Content and PII are stored off-chain
- Only hashes, references, and metadata are recorded on-chain
4.3 Decision identity
Every decision in Reasoning Graph has a stable decision_id that persists throughout the decision’s lifecycle. Confirmation, revision, supersession, or cancellation of a decision does not create a new decision - it changes the state of the existing decision_id. This enables:- Referencing decisions from external systems
- Tracking decision evolution
- Forming correct accountability chains
4.4 Decision scope
Every decision in Reasoning Graph has an explicitly defined scope - the boundaries of decision applicability. Scope may include:- Organizational level (org, team, project)
- System or product
- Client or user group
- Additional constraints (region, environment, period)
4.5 Validity and expiry
A decision in Reasoning Graph may have:- Validity period
- Validity conditions
- Contextual applicability
4.6 Conflicts and supersession
Reasoning Graph allows existence of conflicting decisions. When a conflict is detected, Reasoning Graph:- Records the conflict fact
- Indicates affected decision_ids
- Links conflict to policy or responsible person
4.7 Human override and automation boundaries
Reasoning Graph allows manual intervention by authorized users. Any override action:- Is recorded as an event
- Does not delete history
- Becomes part of the Decision Window
- Determine decision correctness
- Optimize business outcomes
- Replace governance
- Make decisions without policy
- Capture decisions without commitment event or explicit confirmation
4.8 Confidence scoring
How DBB decides “this is a decision or noise”: Linguistic markers:- Presence of commitment language (“we will”, “ship”, “approve”, “I’ll do”)
- Presence of specifics (deadline, owner, change object)
- Presence of alternatives or choice (“A vs B -> B”)
- Thread had conflict or discussion then closure occurred
- Decision accompanied by actions (ticket, PR, doc created)
- Decision confirmed by second person (“+1”, “confirmed”)
- Messages from owner or approver roles are stronger
- Documents and policies are stronger than chat opinions
- Presence of cited primary sources increases confidence
- Too general formulation without object (“need to improve”)
- No evidence
- Pattern repetition or spam behavior
- Contradictions between messages
- confidence ≥ T_high -> decision written as captured
- T_low ≤ confidence < T_high -> candidate, requests light validation
- < T_low -> not written as decision, only as event or ignored
4.9 Correcting false positives without friction
Correct UX pattern: not a modal, but quiet correction:- Decision Surface shows “Captured decision (low confidence)”
- User has 2 buttons: Confirm or Dismiss, plus “Edit statement”
- If dismiss -> DBB learns (negative example), but record remains as raw event (not as decision)
- If edit -> save link: original -> corrected (important for learning)
5. GraphRAG: Knowledge Retrieval with Causality
Standard RAG: “Find similar text chunks -> feed to model” GraphRAG in Reasoning Graph: first filter permitted graph area, then retrieve relevant subgraphs, then apply semantics.5.1 What the graph stores
Typical nodes:- Person or Team or Role
- Document or Policy or Spec or Ticket or PR or MessageThread
- Decision or Assumption or Outcome
- Entity (Customer, Project, System, Vendor, Regulation…)
- Event (from DBB)
- DECIDED_BY
- BASED_ON (decision -> evidence)
- AFFECTS (decision -> entity)
- DEPENDS_ON
- CONFLICTS_WITH
- SUPERSEDES (versioning)
- HAS_OUTCOME
- MENTIONED_IN or DERIVED_FROM
- VALID_IN_TIME_RANGE
5.2 Retrieval algorithm
When a user query arrives:- Intent determination: question, action, analysis, precedent search
- Domain or scope determination: personal, workspace, project, policy
- RBAC or tenant filter: only permitted graph area is selected
- Subgraph: take nodes around key entities
- Vector search within subgraph: find closest evidence or decisions
- Temporal filter: last 90 days or as-of date
- Context assembly: decisions + reasons + sources
- Response by local model with provenance
5.3 Iterative context assembly cycle
Complex queries are processed through an iterative context assembly cycle:- Each iteration recorded as event
- Hypotheses represented as temporary graph nodes
- Final result formalized as Decision or Knowledge Artifact
- Budget exhaustion leads to stop or escalation, not context expansion
5.4 Retrieval Orchestrator as Reasoning Graph core (budget-aware GraphRAG)
Retrieval Orchestrator is implemented as a policy engine that manages context assembly under explicit constraints, rather than expanding it to maximum possible volume. Context is sufficient not by completeness, but by adherence to defined budgets.Context Assembly Session (CAS)
Every user request is processed within a Context Assembly Session (CAS). CAS serves as:- Unit of control
- Unit of audit
- Unit of explainability
Explicit context budgets
Every Context Assembly Session applies mandatory budgets:| Budget | Definition |
|---|---|
| edge_budget | Maximum graph edges that can be traversed in one session |
| step_budget | Maximum reasoning steps and context assembly iterations |
| token_budget | Maximum text volume passed to model |
| risk_budget | Acceptable level of uncertainty, contradictions, and context incompleteness |
Behavior on budget exhaustion
Budget exhaustion is not an error. It is a formal signal for one of these actions:- Stop assembly and generate response within current context
- Escalate request
- Request confirmation via Decision Surface
Context assembly trace
Every CAS saves a context assembly trace including:- Which elements were expanded
- Why
- Which elements were discarded
- At which step assembly stopped
- Which budget was limiting
- Reproducibility
- Explainability
- Audit
- Display in Decision Surface
6. Reasoning Graph Memory: What Membria Remembers
Reasoning Graph memory is multi-layered:6.1 Working context (operational)
- Current tasks, active decisions, open loops
- Short horizon (days or weeks)
- Used for continuity across chat series
6.2 Graph memory (long-term)
- Decisions, assumptions, outcomes, document versions
- Causality, timeline, who approved
Temporal validity
Every graph edge has a temporal scope defined by valid_from and valid_to fields. Every decision has an explicit temporal applicability range. Context retrieval procedures always answer: “as of which date is the analysis performed?“6.3 Vector memory (semantic)
- Similar cases, similar formulations, how we decided before
6.4 Knowledge cache (answer reuse)
If a question was already resolved and answer verified, return without regenerating. Cache types:- Local (personal or team)
- Global or federated (decentralized knowledge backend)
Cached artifact types
Knowledge Cache stores reasoning results:-
Answer Artifact
- Question
- Answer
- Provenance
- Confidence
-
Reasoning Pattern
- Typical conclusion: “in such conditions, usually X”
-
Negative Knowledge
- Decision that proved wrong
- Conditions under which failure occurred
6.5 Why decentralized backend matters
It is needed not to leak private data, but to:- Store reusable, anonymized artifacts (patterns, decisions, corrections)
- Support portability between devices
- Provide common layer for council results (if policy permits)
7. Runtime: Local-first + Escalation (Council)
7.1 Why local
Because Reasoning Graph holds long-term memory, meaning:- Lots of data
- Personal context
- Privacy is critical
- Latency matters
7.2 When local model is insufficient
Escalation triggers:- Confidence below threshold
- Contradiction found in graph
- High risk (finance, compliance, legal)
- Request requires rare expertise not in LoRA or cache
- New area with no historical decisions
7.3 Escalation order
- Global or shared knowledge cache: do we already have a verified answer?
- Council: parallel request to multiple strong models
- Synthesis: consensus assembly plus contradiction check against graph
- Cache: result saved as verified knowledge artifact
- Gap detection: recurring escalations become LoRA candidates
8. LoRA Lifecycle: How Expertise Accumulates
Important: LoRA does not make the model smarter overall. LoRA makes the model more precise in a narrow domain and reduces escalation count.8.1 Where LoRA data comes from
Three main categories:- Decision -> Outcome feedback
- DBB captured decision
- Later, outcome appeared
- Reasoning Graph understands: decision was successful or failed
- Training example forms: which reasoning was correct under these conditions
- Council distillation
- Council gave strong answer or plan
- Reasoning Graph compared: where did local model err? why?
- Pairs form: question -> correct answer pattern
- This closes knowledge gap
- Domain packs (optional)
- Rules, policies, guides, playbooks
- Especially useful in enterprise or SMB
8.2 Governance: why uncontrolled self-learning is forbidden
Because otherwise LoRA becomes a data poisoning channel:- User or employee can intentionally feed garbage
- Drift can occur
- Quality can degrade (hallucinations increase)
- Candidate generation (auto)
- Eval dataset (fixed test prompts + known failure cases)
- Offline eval (accuracy, hallucinations, escalations)
- Canary rollout (subset of requests)
- Promotion or rollback (instant rollback)
- Versioning (each LoRA has version and metrics)
8.3 LoRA router policy
Router evaluates:- Domain match
- Historical LoRA benefit (on eval + in production)
- Current risk policies
- Confidence baseline without LoRA
- No degradation guarantee (if LoRA increases hallucination probability -> forbidden)
8.4 LoRA justification record
Every LoRA adapter is accompanied by a LoRA Justification Record containing:- Reason for LoRA emergence
- Identified gaps
- Expected effect
- Potential risks
9. How It All Connects: The Compound Cycle
The complete accumulation cycle:- User interacts normally (chat, code, documents)
- DBB extracts events and decisions, links them to sources
- Decisions are written to graph (with causality and time)
- DS shows signals: what’s open, drifting, needs confirmation
- On new query, Reasoning Graph first searches graph and cache, then provides context to local model
- If local is insufficient -> escalation to Council
- Council result is synthesized, checked for graph conflicts, cached
- Recurring gaps become LoRA candidates
- LoRA passes evaluation, deploys, reduces future escalations
- System becomes more precise and personal without losing controllability
10. How Reasoning Graph Protects Against Input Garbage
Minimal defense heuristics:| Protection | Description |
|---|---|
| Source weighting | Documents, policies, signatures rank higher than chat words |
| Role weighting | Owner or approver has greater weight |
| Evidence requirement | Important decisions without sources do not get promoted |
| Contradiction checks | If graph contains conflict, increase risk or request confirmation |
| Temporal sanity | Decision cannot reference event from the future |
| Spam or repetition detection | Identical formulations, strange patterns |
| Canary and rollback for LoRA | Any degradation -> instant rollback |
Appendix A: Commitment Events for SMB Audit Firms
Legal or Audit
- Engagement letter signed
- Audit opinion sent
- Representation letter received
- Matter closed in DMS
Financial
- Invoice issued
- Invoice sent
- Write-off approved
Communications
- Opinion email sent to client
- Scope confirmation sent
- Client approval received
Appendix B: Required Integrations for SMB Audit
MVP (required)
- Outlook or Exchange - email events
- iManage or NetDocuments - DMS events
- Billing system - financial events
Phase 2
- Teams - additional context
- Practice management system
Appendix C: Deployment Models
| Segment | Deployment |
|---|---|
| Personal | Local-first |
| SMB Audit | Cloud-first |
| Enterprise | Hybrid or on-prem |
- IT does not want to support infrastructure
- Cloud preferred
- SOC2 and access control important
Summary
Reasoning Graph is the layer that transforms disposable AI conversations into persistent institutional memory. Key principles:- Decisions, not documents - capture reasoning, not just files
- Commitment Events, not LLM interpretation - irreversibility comes from external facts
- Budget-aware retrieval - controlled context, not maximum dump
- Governed learning - LoRA with eval, rollback, justification
- Human-in-the-loop - Reasoning Graph never decides, only supports decisions